Skip to content

stevenferrer/stm32f407-blink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stm32f407-blink

STM32F407 blink example using STM32F4XX M board. Special thanks to FastBit Embedded Brain Academy.

Requirements

How to flash

Build the binary.

$ make

Flash.

$ make flash

Enjoy watching the LED blink!

Semihosting

Build semihosting binary.

$ make semi

Run OpenOCD.

$ make debug

Flash, enable semihosting and reset.

$ arm-none-eabi-gdb

(gdb) target extended-remote :3333
(gdb) monitor flash write_image erase blink_semi.elf
(gdb) monitor arm semihosting enable
(gdb) monitor reset

Watch OpenOCD console print.

Application is running...
Toggle count: 1
Toggle count: 2
Toggle count: 3
...