This repo is a collection of various experiments on the STM32F4 Discovery Board.
This project started with compiling the blink led project here and from there to experiments with various oscillators.
This is code from here. But with Makefiles to help build the project.
These instructions apply to each of the examples.
Follow the instructions here on setting up your Linux enironment for development on STM32F4xx boards.
Modify your Makefile to change STLINK and STM_COMMON to point them to the places you have installed and compiled these tools and libraries.
Run
$ make
to make the xxx.bin file.
$ make burn
to burn the file to your STM32 Discovery board.
To debug code, first run st-util, then run
$ arm-none-eabi-gdb xxxx.elf
Then from the gdb console
(gdb) target remote localhost:4242
You can now step through your code and examine what happens.