2013-03-20 10:57 AM
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 0x080000002013-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 0x101864162013-03-20T18:45:02 INFO src/stlink-common.c: SRAM size: 0x4000 bytes (16 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 256 bytes2013-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) == -1stlink_fwrite_flash() == -1The 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 #flash2013-03-20 02:10 PM
Looks like a bug in your st-flash application, review the source.