From 8bfdb9714f7e235cbe53498377b414aee94b3666 Mon Sep 17 00:00:00 2001 From: Daiyuanranfeng Date: Thu, 19 Nov 2026 19:24:30 +0800 Subject: [docs][pico] document the GNU Arm toolchain path Signed-off-by: Daiyuanranfeng --- bsp/raspberry-pico/RP2040/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bsp/raspberry-pico/RP2040/README.md b/bsp/raspberry-pico/RP2040/README.md index d0b9fd59a0..da1b82c3c5 100644 --- a/bsp/raspberry-pico/RP2040/README.md +++ b/bsp/raspberry-pico/RP2040/README.md @@ -39,6 +39,18 @@ pkgs --update ### Step 2: build +On Linux or WSL, if the GNU Arm toolchain is installed outside `/usr/bin`, +set `RTT_EXEC_PATH` to the directory containing `arm-none-eabi-gcc` before +running SCons. For example (replace the path with your installation): + +```bash +export RTT_EXEC_PATH="/opt/arm-gnu-toolchain/bin" +"$RTT_EXEC_PATH/arm-none-eabi-gcc" --version +``` + +The BSP passes this directory to the Pico SDK build as well, so you do +not need to add toolchain symlinks under `/usr/bin`. + ```bash scons -c scons -- cgit v1.3.1