Skip to content

Bare metal STM32F1 examples for various modules

Notifications You must be signed in to change notification settings

atochukwu0/stm32f1-bare-metal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stm32f1-bare-metal

Bare-metal programming for a STM32F1-based board. (Cortex-M3)

Tested on EasyMx Pro v7 board with STM32F107 chip.

Install

Compile

  • Browse into any of the project directory cd systick and run make to compile.
Cleaning...
Building systick.c
   text	   data	    bss	    dec	    hex	filename
    384	      0	      0	    384	    180	systick.elf
Successfully finished...

Program

  • Run make burn to program the chip.
...
...
Flash written and verified! jolly good!

Projects

  • 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.

About

Bare metal STM32F1 examples for various modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.1%
  • Makefile 7.9%