---
** [tickets:#271] STM32L4RET fails to flash for image bigger than 256KB**
**Status:** new
**Milestone:** 0.9.0
**Created:** Sun Jun 21, 2020 03:17 PM UTC by Matt
**Last Updated:** Sun Jun 21, 2020 03:17 PM UTC
**Owner:** nobody
I have this MCU which has 512KB flash, dual bank. I found that flashing fails
for images larger than 256KB. Flashing with:
openocd -f interface/stlink-v2.cfg -f target/stm32l4x.cfg -c 'init; reset halt;
program nuttx/nuttx.bin 0x08000000 verify reset; shutdown'
I get this output:
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override
use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results
might differ compared to plain JTAG/SWD
adapter speed: 500 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : clock speed 480 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.250952
Info : stm32l4x.cpu: hardware has 6 breakpoints, 4 watchpoints
adapter speed: 500 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000188 msp: 0x20003284
adapter speed: 500 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000188 msp: 0x20003284
adapter speed: 4000 kHz
** Programming Started **
auto erase enabled
Info : device id = 0x10076415
Info : flash size = 512kbytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x41000000 pc: 0x20000050 msp: 0x20003284
Error: flash write algorithm aborted by target
Error: error executing stm32l4 flash write algorithm
Error: flash write failed = 000000a0
Warn : block write failed
Error: error writing to flash at address 0x08000000 at offset 0x00000000
embedded:startup.tcl:487: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 543
at file "embedded:startup.tcl", line 487
---
Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel