Menu

#162 stm32f401ccu6 stitches through the garbage

none
Invalid
nobody
None
Medium
Other
2024-04-10
2024-04-10
orcali
No
PS C:\Users\USER\Desktop\learning\practic\00 stm32 bare metal> stm32flash -w .\helloworld.elf -v -g 0x0 COM9
stm32flash 0.7

http://stm32flash.sourceforge.net/

Using Parser : Raw BINARY
Size         : 663772
Interface serial_w32: 57600 8E1
Version      : 0x31
Option 1     : 0x00
Option 2     : 0x00
Device ID    : 0x0423 (STM32F401xB(C))
- RAM        : Up to 64KiB  (12288b reserved by bootloader)
- Flash      : Up to 256KiB (size first sector: 1x16384)
- Option RAM : 16b
- System RAM : 30KiB
Write to memory
Erasing memory
Wrote and verified address 0x08040000 (39.49%) Done.

Starting execution at address 0x08000000... done.

I flashed my file through st-link in cubeide and everything worked fine. Through the uart, it completes the firmware, but the LED does not blink. what could I have missed and what could be the problem?

Discussion

  • Tormod Volden

    Tormod Volden - 2024-04-10

    You shouldn't flash the .elf file, but a raw binary. Use objcopy to create a .bin file from the .elf file.

     
    • orcali

      orcali - 2024-04-10

      thank you very much!

       
  • Tormod Volden

    Tormod Volden - 2024-04-10
    • status: New --> Invalid
    • Type: Defect --> Other
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB