You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stlink tools version and/or git commit hash: v1.5.1-30-g84f63d2
Stlink commandline tool name: st-flash
Target chip (and optional board): STM32WB55RGV6
If I compile a program that exceeds 8192 bytes (2 pages) on my STM32WB55RG board, I receive the error below. If I keep it below 8192 bytes, it flashes just fine. So, apparently, something is happening at the end of page 2 or beginning of page 3.
I've tried running st-flash erase prior to flashing, but it makes no difference. I've also tried multiple resets and power cycles.
The programs (both working and failing) are compiled via a make file that was generated with cubemx. The program that fails to flash is the default setup generated by cubemx, without any additional code.
I have a L476RG board that I've flashed programs in the 500KiB range using this version of st-flash. No errors were produced in that case.
**Edit: I just tried to flash a pre-compiled binary from ST for this board, and I got the same error. It appears to write all the data (per the cli), but errors when verifying at 8192.
Output:
st-flash write WB55_02.bin 0x8000000
st-flash 1.5.1-30-g84f63d2
2019-06-16T13:58:49 INFO common.c: Loading device parameters....
2019-06-16T13:58:49 INFO common.c: Device connected is: WB55 device, id 0x20016495
2019-06-16T13:58:49 INFO common.c: SRAM size: 0x40000 bytes (256 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 4096 bytes
2019-06-16T13:58:49 INFO common.c: Attempting to write 11612 (0x2d5c) bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08002000 erased
2019-06-16T13:58:49 INFO common.c: Finished erasing 3 pages of 4096 (0x1000) bytes
Writing
Starting 2 page write
2019-06-16T13:58:50 INFO common.c: Starting verification of write complete
2019-06-16T13:58:50 ERROR common.c: Verification of flash failed at offset: 8192
stlink_fwrite_flash() == -1
Expected/description:
successful flash
The text was updated successfully, but these errors were encountered:
st-flash
If I compile a program that exceeds 8192 bytes (2 pages) on my STM32WB55RG board, I receive the error below. If I keep it below 8192 bytes, it flashes just fine. So, apparently, something is happening at the end of page 2 or beginning of page 3.
I've tried running
st-flash erase
prior to flashing, but it makes no difference. I've also tried multiple resets and power cycles.The programs (both working and failing) are compiled via a make file that was generated with cubemx. The program that fails to flash is the default setup generated by cubemx, without any additional code.
I have a L476RG board that I've flashed programs in the 500KiB range using this version of st-flash. No errors were produced in that case.
**Edit: I just tried to flash a pre-compiled binary from ST for this board, and I got the same error. It appears to write all the data (per the cli), but errors when verifying at 8192.
Output:
Expected/description:
successful flash
The text was updated successfully, but these errors were encountered: