Project skeleton for the STM32 line of microcontrollers. This is a work in progress, support for many hardware registers and many microcontrollers is still missing.
- arm-none-eabi toolchain (should be in your linux distibutions reposiory)
- stlink
- (optional) stm32loader (should be in your linux distibutions reposiory)
- Edit the file
config.mkto reflect your device configuration - Set up the interrupt handlers in
src/interrupt.c - Type
maketo compile - Type
make installto program the microcontroller
- Program the microcontroller with
make install - Run
st-utilto open debug link to device - Run
arm-none-eabi-gdb project.elfand type the commandtarget remote localhost:4242in gdb