Bare-metal programming for a STM32F1-based board. (Cortex-M3)
Tested on EasyMx Pro v7 board with STM32F107 chip.
- Toolchain - GNU ARM Toolchain
- (Windows only) - MinGW and MSYS
- Programmer - STLink
- Browse into any of the project directory
cd systick
and runmake
to compile.
Cleaning...
Building systick.c
text data bss dec hex filename
384 0 0 384 180 systick.elf
Successfully finished...
- Run
make burn
to program the chip.
...
...
Flash written and verified! jolly good!
- systick - SysTick Timer example
- clock - An example to bump the clock speed to 72 Mhz
- ext_int - An external interrupt example to toggle LEDs using button presses. Uses EXTI0 and EXTI1 modules.
- timer - A timer example to toggle LEDs in 1 second intervals. Uses Timer3 module.
- timer_int - A timer example to toggle LEDs in 1 second intervals. Uses Timer3 module and interrupt.
- pwm - A PWM example to fade PE14. Uses Timer1 module and interrupt.
- adc - An ADC input example. Displays the value of the analog pot on PortD LEDs.
- mathtest - An example project to show how to use functions from the math library
- dac - A DAC output example. Fades PA4.
- dma - DMA memory to memory transfer example to transfer 256 bytes of data.
- uart - A UART example to transmit characters through PA10.