From 67a85e74b2efa131e475daff3f5a5f46a5c6c43f Mon Sep 17 00:00:00 2001 From: Anol Paisal Date: Thu, 29 Aug 2024 15:18:07 +0700 Subject: [PATCH] Update doc for STM32 --- doc/INSTALL.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/INSTALL.md b/doc/INSTALL.md index 89cbe3950..f235e0035 100644 --- a/doc/INSTALL.md +++ b/doc/INSTALL.md @@ -35,9 +35,14 @@ To configure CSP to build with the AVR32 toolchain for FreeRTOS and output the compiled libcsp.a and header files to the install directory, issue: +For AVR32 ```shell ./waf configure --toolchain=avr32- --with-os=freertos --prefix=install ``` +For STM32 and toolchain (gcc-arm-none-eabi-10.3-2021.10) +```shell +./waf configure --toolchain=arm-none-eabi- --with-os=freertos --prefix=build/lib --includes=../FreeRTOS/Source/include/,../../../Core/Inc/,../FreeRTOS/Source/portable/GCC/ARM_CM4F/,/usr/share/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/ --enable-reproducible-builds +``` When compiling for FreeRTOS, the path to the FreeRTOS header files must be specified with `--includes=PATH`.