AnsweredAssumed Answered

STM32L st-flash problem

Question asked by Jasper298 on Mar 20, 2013
Latest reply on Mar 20, 2013 by Clive One
Hello,

I have a problem while trying to flash a *.bin file into my STM32L-Discovery board.
The following error is shown:

./flash/st-flash write /Users/jaspervandenakker/Documents/stm32l-discovery-projects/workspace/STM32L-Template/Debug/STM32L-Template.bin 0x08000000
2013-03-20T18:45:02 INFO src/stlink-common.c: Loading device parameters....
2013-03-20T18:45:02 INFO src/stlink-common.c: Device connected is: L1 Med-density device, id 0x10186416
2013-03-20T18:45:02 INFO src/stlink-common.c: SRAM size: 0x4000 bytes (16 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 256 bytes
2013-03-20T18:45:02 INFO src/stlink-common.c: Attempting to write 21860 (0x5564) bytes to stm32 address: 134217728 (0x8000000)
2013-03-20T18:45:02 WARN src/stlink-common.c: pecr.prglock not clear (0x7)
2013-03-20T18:45:02 ERROR src/stlink-common.c: Failed to erase_flash_page(0x8000000) == -1
stlink_fwrite_flash() == -1


The st link works fine, because i can successfully flash a *.bin file into my STM32F4-Discovery board.

Does anybody know something about this problem?

I have also tried different stm32_flash.ld files, but no result...

Hopefully somebody can help me.

Outcomes