Menu

#169 Flashing STM32F446 fails at 30%

none
Invalid
nobody
None
Low
Other
2025-01-02
2024-09-20
No

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.     

Discussion

  • Stefan Riesenberger

    Using the STM provided programmer tool works fine.

     
  • Tormod Volden

    Tormod Volden - 2024-09-20

    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.

     
  • Tormod Volden

    Tormod Volden - 2024-09-20

    Or .hex file.

     
  • Stefan Riesenberger

    ohhh that worked!
    Thank you so much!

    Sorry for bothering your with my incompetence...

     
  • Tormod Volden

    Tormod Volden - 2025-01-02
    • status: New --> Invalid
    • Priority: Medium --> Low
    • Type: Defect --> Other
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB