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
I am trying to figure out how to use the st-flash command-line flash loader utility. After building these stlink tools I can see that the board is attached (st-info --probe outputs "Found 1 stlink programmers", st-info --descr outputs "F334 device"), but when I try to download the example code that comes loaded onto the board into a hex file by running st-flash read /dev/sg2 demo.hex it fails with:
2016-08-18T16:30:18 INFO stlink/src/common.c: Loading device parameters....
2016-08-18T16:30:18 INFO stlink/src/common.c: Device connected is: F334 device, id 0x10016438
2016-08-18T16:30:18 INFO stlink/src/common.c: SRAM size: 0x3000 bytes (12 KiB), Flash: 0x10000 bytes (64 KiB) in pages of 2048 bytes
write() != aligned_size
stlink_fread() == -1
(absolute path prefix removed)
Could someone help me figure out what's wrong? Perhaps I am not using the command properly? I could not find much documentation explaining how to use it, and I also have not done much with STM32 devices before.
The text was updated successfully, but these errors were encountered:
xor-gate
changed the title
Help downloading code from STM32 via st-flash (getting write() != aligned_size' & 'stlink_fread() == -1)
Unable to download hex file to target
Aug 20, 2016
I am trying to figure out how to use the
st-flash
command-line flash loader utility. After building thesestlink
tools I can see that the board is attached (st-info --probe
outputs "Found 1 stlink programmers",st-info --descr
outputs "F334 device"), but when I try to download the example code that comes loaded onto the board into a hex file by runningst-flash read /dev/sg2 demo.hex
it fails with:(absolute path prefix removed)
Could someone help me figure out what's wrong? Perhaps I am not using the command properly? I could not find much documentation explaining how to use it, and I also have not done much with STM32 devices before.
Details about my setup are given below.
1ca526ca4d5a1c0658812720690ebefdeb259e3d
The text was updated successfully, but these errors were encountered: