Bootstrap with FreeRTOS and STM32 HAL libraries for STM32F103C8T6 microcontroler. This example was created for STM32F103 microcontroller version from eBay
Also in bin directory existed 2 scripts:
- import_cubemx_project.sh - import source files from STM32 CubeMX tool
- install_freertos.sh - install fresh FreeRTOS
Open "Preferences -> Build, Execution, Deployment -> CMake" and set next fields:
- CMake options:
-DCMAKE_TOOLCHAIN_FILE=STM32F103xb.cmake
- Build output path:
build
- Open STM32 CubeMX tool
- Add and configure your STM32F103 microcontroller and enable "FreeRTOS" checkbox
- Go to "Project -> settings" and choose "Toolchain / IDE" -> "SW4STM32", and copy somewhere "Toolchain Location Folder"
- Click "Project -> Generate code"
- Run command:
./bin/import_cubemx_project.sh <Toolchain Location Folder>
- Done
- Download zip file from SourceForge
- Run command:
./bin/install_freertos.sh FreeRTOSv9.0.0.zip heap_4.c
- Done