~berfr/stm32f4discovery

STM32F4 + FreeRTOS project template
Add console info in readme
Update readme for multiple example files
Add simple accelerometer library and test file

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~berfr/stm32f4discovery
read/write
git@git.sr.ht:~berfr/stm32f4discovery

You can also use your local clone with git send-email.

stm32f4discovery

This project contains the files and configurations necessary to quickly get running with FreeRTOS on the STM32F4 Discovery board.

Parts of this project are discussed here: https://berfr.me/posts/getting-started-stm32f4-freertos/.

dependencies

based on

  • FreeRTOSv10.2.1
  • STM32F4xx_DSP_StdPeriph_Lib_V1.8.0
    • CMSIS V4.00
  • STM32F4-Discovery_FW_V1.1.0

setup

# setup output directory
mkdir bin && cd bin
cmake ..

# build and run example
make blink_leds.elf
make blink_leds.bin-flash

console

The console.c/console.h code uses the following configuration:

  • UART4 at 115200 bps
  • PC10 as UART4_TX
  • PC11 as UART4_RX

other

# sync lib files
rsync -a -v --files-from=lib-files-freertos.txt ../embedded-libs/FreeRTOSv10.2.1/ lib/freertos/
rsync -a -v --files-from=lib-files-stm32f4discovery.txt ../embedded-libs/STM32F4-Discovery_FW_V1.1.0/ lib/stm32f4discovery/
rsync -a -v --files-from=lib-files-stm32f4xx.txt ../embedded-libs/STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/ lib/stm32f4xx/

license

The files under lib/ are licensed according to their specific licenses.

The rest of the project is licensed under the MIT license.