Skip to content

Platformio build script for Chibios

License

Notifications You must be signed in to change notification settings

Birkemosen/builder-framework-chibios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Builder-framework-chibios

CHIBIOS build script for PlatformIO Build System

Setup

  • Create the following folder stucture under packages directory

      + framework-chibios
          + platformio 
              ldscripts
    
  • Copy "os" folder from chibios 18.2.1 to "framework-chibios"

  • Copy "chibios.py" to "platforms/ststm32/builder/frameworks/"

  • Update packages.json

Build Flags

By default this script compiles the Chibios/HAL only. To enable other features of CHIBIOS, use the following "build_flags".

Use Chibios/NIL

Enable the Chibios/NIL RTOS kernel. Note: Only one Kernel can be used at a time. -D PIO_CHIBIOS_USE_NIL

Use Chibios/RT

Enable the Chibios\RT RTOS kernel. Only one Kernel can be used at a time. -D PIO_CHIBIOS_USE_RT

Use I2C Fallback driver

Use the I2C Fallback LLD driver instead of the board specific LLD driver. -D PIO_CHIBIOS_I2C_FALLBACK

Enable C++ Wrappers

Adds the Chibios CPP_Wrappers to the build -D PIO_CHIBIOS_USE_CPP

Enable Floating Point Unit

Enable FPU using softfp -D PIO_CHIBIOS_USE_FPU

Change Main Stack Size

Change the default value (0x400) for __main_stack_size__. -D USE_MAIN_STACKSIZE=<value>

Change Process Stack Size

Change the default value (0x400) for __process_stack_size__. -D USE_PROCESS_STACKSIZE=<value>

About

Platformio build script for Chibios

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages