|King Kévin c54728241c
this firmware template is designed for development boards based around STM32 F1 series micro-controller.
describe project purpose
described electronic details
The current implementation uses a blue pill.
The underlying template also supports following board:
- Maple Mini, based on a STM32F103CBT6
- System Board, based on a STM32F103C8T6
- blue pill, based on a STM32F103C8T6
Which board is used is defined in the Makefile. This is required:
- for the linker script to know the memory layout (flash and RAM)
- map the user LED and button provided on the board
Connect the peripherals the following way (STM32F10X signal; STM32F10X pin; peripheral pin; peripheral signal; comment):
- list board to preipheral pin connections
All pins are configured using
defines in the corresponding source code.
The source code uses the libopencm3 library.
The projects is already a git submodules.
To initialize and it you just need to run once:
git submodule init and
git submodule update.
To compile the firmware run
To generate doxygen documentation run
The firmware will be flashed using SWD (Serial Wire Debug).
For that you need an SWD adapter.
Makefile uses a ST-Link V2 along OpenOCD software (per default), or a Black Magic Probe.
To flash using SWD run
SWD also allows to debug the code running on the micro-controller using GDB.
To start the debugging session run
The firmware offers serial communication over USART1 and USB (using the CDC ACM device class).
You can also reset the board by setting the serial width to 5 bits over USB.
To reset the board run
This only works if the USB CDC ACM is running correctly and the micro-controller isn't stuck.