stm32f401ccu6 stitches through the garbage
Open source flash program for STM32 using the ST serial bootloader
Brought to you by:
tormod
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?
Anonymous
You shouldn't flash the .elf file, but a raw binary. Use objcopy to create a .bin file from the .elf file.
thank you very much!