CHIBIOS build script for PlatformIO Build System
-
Create the following folder stucture under packages directory
+ framework-chibios + platformio ldscripts
-
Copy "os" folder from chibios 18.2.1 to "framework-chibios"
- https://github.com/ChibiOS/ChibiOS.git
- branch: stable_18.2.x
-
Copy "chibios.py" to "platforms/ststm32/builder/frameworks/"
-
Update packages.json
By default this script compiles the Chibios/HAL only.
To enable other features of CHIBIOS, use the following "build_flags"
.
Enable the Chibios/NIL RTOS kernel.
Note: Only one Kernel can be used at a time.
-D PIO_CHIBIOS_USE_NIL
Enable the Chibios\RT RTOS kernel.
Only one Kernel can be used at a time.
-D PIO_CHIBIOS_USE_RT
Use the I2C Fallback LLD driver instead of the board specific LLD driver.
-D PIO_CHIBIOS_I2C_FALLBACK
Adds the Chibios CPP_Wrappers to the build
-D PIO_CHIBIOS_USE_CPP
Enable FPU using softfp
-D PIO_CHIBIOS_USE_FPU
Change the default value (0x400) for __main_stack_size__.
-D USE_MAIN_STACKSIZE=<value>
Change the default value (0x400) for __process_stack_size__.
-D USE_PROCESS_STACKSIZE=<value>