cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L st-flash problem

jaspervandenakker
Associate II
Posted on March 20, 2013 at 18:57

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.

#st-link #stm32l #flash
1 REPLY 1
Posted on March 20, 2013 at 22:10

Looks like a bug in your st-flash application, review the source.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..