New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flashing: Impossible to flash large file on stm32f4 #68
Comments
This should be closed, F4 flashing has been rewritten to use an sram based flash loader, so this should no longer be an issue. |
@karlp : NOPE! Here is the patch:
As ardf69 seems to be using the "st-flash" program and this is located in the gdb-server code, it seems a similar bug exists in the st-flash code. Update. F*** github. Can't put a patch in a comment. |
|
Why was this closed? I think we should verify if this has been fixed in the code. |
@rewolff: I found that your patch has made it into the code and linked the related PR to this ticket. |
If I flash a file of 0x74000 size with the following command
st-flash write file.bin 0x08080000
I obtain the following error:
2012-03-09T15:48:20 INFO src/stlink-common.c: Loading device parameters....
2012-03-09T15:48:20 INFO src/stlink-common.c: Device connected is: F4 device, id 0x20006411
2012-03-09T15:48:20 INFO src/stlink-common.c: SRAM size: 0x30000 bytes (192 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 16384 bytes
2012-03-09T15:48:20 INFO src/stlink-common.c: Ignoring 1 bytes of Zeros at end of file
2012-03-09T15:48:20 INFO src/stlink-common.c: Attempting to write 475135 (0x73fff) bytes to stm32 address: 134742016 (0x8080000)
2012-03-09T15:48:20 WARN src/stlink-common.c: unaligned addr or size
stlink_fwrite_flash() == -1
Ciao Angelo
The text was updated successfully, but these errors were encountered: