Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for SDK 2.1.0 #35

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Prev Previous commit
Remove trailing backslash from toolchain path
  • Loading branch information
ndabas committed Dec 16, 2024
commit 079a7539fe2ebb35f439b8709b159f0ffd636c55
8 changes: 6 additions & 2 deletions packages/pico-setup-windows/pico-env.cmd
Original file line number Diff line number Diff line change
@@ -91,8 +91,12 @@ call :AddToPath "%PICO_INSTALL_PATH%\pico-sdk-tools\elf2uf2"
call :AddToPath "%PICO_INSTALL_PATH%\pico-sdk-tools\pioasm"
call :AddToPath "%PICO_INSTALL_PATH%\pico-sdk-tools\picotool"

for /f "usebackq tokens=*" %%f in (`where arm-none-eabi-gcc`) do (
set "PICO_ARM_TOOLCHAIN_PATH=%%~dpf"
for %%f in (arm-none-eabi-gcc.exe) do (
set "PICO_ARM_TOOLCHAIN_PATH=%%~dp$PATH:f"
)
rem Remove trailing backslash - add a . then resolve with the 'f' modifier
for %%f in ("%PICO_ARM_TOOLCHAIN_PATH%.") do (
set "PICO_ARM_TOOLCHAIN_PATH=%%~ff"
)

if exist "%PICO_INSTALL_PATH%\riscv-gnu-toolchain\bin" (
Loading