Closed Faduf closed 3 years ago
Thats a pitty, the flash loaders for the L0 and L1 seem to be unstable. In the meantime you should try to use openocd if that is possible to get a more stable result.
Ok, thanks for the feedback. Openocd works fine. Don't hesitate if you need help to debug.
This is working in boot mode (boot to Vdd). I'm closing the issue, thanks.
Great it works now
@Faduf: Does this work without openocd as well with Release v1.6.0 ? Can someone verify?
@Nightwalker-87 sorry for not giving feedback on this topic but I'm stuck at home due to the coronavirus pandemy. My boards with the F0 chip are at the office and I can't go there until few weeks.
@Faduf: No problem at all, we're not in a hurry. Thx for your feedback. :+1:
Sorry for the delay. Please check if #876 resolves this problem as it resolves #579, one of the similar issues you mentioned in your opening post.
I just checked on my tree with the same board (l0 discovery lora thing), apparently there's a flash loader run error, indeed - but the flashing goes well here. i dont think i have an other l0 device to check.
% ./build/Release/st-flash write /tmp/saved.bin 0x8000000
st-flash 1.6.0-98-gd7cffeb-dirty 2020-04-03T10:55:23 INFO common.c: L0xx Category 5: 20 KiB SRAM, 192 KiB flash in 128 byte pages. 2020-04-03T10:55:23 INFO common.c: Attempting to write 196608 (0x30000) bytes to stm32 address: 134217728 (0x8000000) Flash page at addr: 0x0802ff80 erased 2020-04-03T10:55:33 INFO common.c: Finished erasing 1536 pages of 128 (0x80) bytes 2020-04-03T10:55:33 INFO common.c: Starting Half page flash write for STM32L core id 2020-04-03T10:55:33 INFO flash_loader.c: Successfully loaded flash loader in sram 2020-04-03T10:55:34 ERROR flash_loader.c: flash loader run error 2020-04-03T10:55:34 WARN common.c: l1_stlink_flash_loader_run(0x8000000) failed! == -1 2020-04-03T10:55:34 WARN common.c: write_half_pages failed == -1 1535/1536 pages written 2020-04-03T10:58:38 INFO common.c: Starting verification of write complete 2020-04-03T10:58:40 INFO common.c: Flash written and verified! jolly good!
I'll have a look at the flash loader run error.
Ah, thx @grevaillot! I know about this error from quite a few other tickets. It would be very helpful indeed, if you could find a solution to this.
I have a similar problem than the issues #593 and #579. I can't flash my STM32L0 anymore and I have the failure "l1_stlink_flash_loader_run(0x8000000) failed! == -1".