Flashing STM32F446 fails at 30%
Open source flash program for STM32 using the ST serial bootloader
Brought to you by:
tormod
Hello!
I was trying this tool with my STM32F446 and it seems it doesnt flash properly. It just stops at ~30%.
Is there any logging I can provide? I have access to a logic analyzer, if that would be helpful somehow.
.\stm32flash.exe -b 115200 -w firmware.elf -v -g 0x0 COM12
stm32flash 0.7
http://stm32flash.sourceforge.net/
Using Parser : Raw BINARY
Size : 1756140
Interface serial_w32: 115200 8E1
Version : 0x31
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0421 (STM32F446xx)
- RAM : Up to 128KiB (12288b reserved by bootloader)
- Flash : Up to 512KiB (size first sector: 1x16384)
- Option RAM : 16b
- System RAM : 30KiB
Write to memory
Erasing memory
Wrote and verified address 0x08080000 (29.85%) Done.
Starting execution at address 0x08000000... done.
Anonymous
Using the STM provided programmer tool works fine.
It seems that you are programming an .elf file directly onto the device. You should extract a binary file from the ELF file and use that instead.
Or .hex file.
ohhh that worked!
Thank you so much!
Sorry for bothering your with my incompetence...