Skip to content

Grzegorzwww/stm32_freeRTOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STM32F429 + FreeRTOS 8.2 starter for OS X

Template project based on Eclipse New STM32F4xx C/C++ project wizard + FreeRTOS 8.2 sources. Tested on OS X Yosemite.

The original application, based on this FreeRTOS tutorial, should blink the green LED (PG13) with a period of 1.5s and toggle the red one (PG14) when the blue button (USER) is pressed. This happens in three separate FreeRTOS tasks: first one for the green LED, second one for detecting button presses and putting them in a queue and the third one for consuming the queued events and toggling the red LED.

Prerequisites

Setup

  1. Clone this repository :)

  2. Create a project in Eclipse:

  • go to File / New / C Project

  • choose Executable / New STM32F4xx C/C++ project

  • use stm32f4-freertos-starter for the Project name

  • uncheck Use default location and choose the location where you cloned this repository, then click Next

  • in the Chip family dropdown, choose STM32F429xx

  • in the Content dropdown, choose Empty (add your own content)

  • in the Trace output dropdown, choose Semihosting DEBUG channel, then click Next until the Cross GNU ARM toolchain screen

  • choose the GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc) in the Toolchain name dropdown

  • in the Toolchain path, give the path to the bin folder of your gcc-arm-none-eabi installation

  • configure build settings - go to project properties / C/C++ Build / Settings.

    Under Target processor:

    • check the Thumb interwork (-mthumb-interwork) checkbox
    • in Endianness select Little endian (-mlittle-endian)
    • in Float ABI select FP instructions (hard)
    • in FPU type select fpv4-sp-d16

    Under Cross ARM C Compiler / Includes add the following to the Include paths:

    • ../include/FreeRTOS/Source/include
    • ../include/FreeRTOS/Source/portable/GCC/ARM_CM4F
  1. If any of the project files were modified by Eclipse during the import, run git reset --hard to restore the original files.

  2. Go to project properties, then C/C++ General / Paths and Symbols / Source Location, locate and expand the /stm32f4-freertos-starter/system folder and clear its attached filter, if not empty (click Edit Filter..., select all with CMD+A, click Remove)

  3. Build the project to check if everything works.

  4. Create an OpenOCD debug configuration as described in this tutorial.

NOTE: on the OpenOCD Debugger tab, the value of Other options (which is called Config options in Eclipse Luna) should be -f board/stm32f429discovery.cfg instead of what the tutorial suggests.

Use the created configuration to deploy the application to the board and debug it.

Credits

stm32_freeRTOS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published