devinw1
Posts: 13
Joined: Sat Mar 26, 2022 9:47 pm

SDK location was not specified. Please set PICO_SDK_PATH or set PICO_SDK_FETCH_FROM_GIT to on to fetch from git."

Sat Mar 26, 2022 9:51 pm

I have followed numerous tutorials to set up the SDK and keep getting the following error from Vcode:

"SDK location was not specified. Please set PICO_SDK_PATH or set PICO_SDK_FETCH_FROM_GIT to on to fetch from git."

I have done BOTH of these things:

1) Add "export PICO_SDK_PATH="$HOME/git/pico-sdk" to my .bash_profile file

2) Go to Cmake Tools configuration and add PICO_SDK_PATH Environment Variable under "Build ENvironment" in Vcode

And still get this error.

What am I doing wrong here? SDK is definitely present in the folder above (HOME/git/pico-sdk")


ArjunaDev
Posts: 2
Joined: Wed Apr 20, 2022 3:20 pm

Re: SDK location was not specified. Please set PICO_SDK_PATH or set PICO_SDK_FETCH_FROM_GIT to on to fetch from git."

Wed Apr 20, 2022 3:24 pm

I managed to overcome this problem by setting an environment variable through cmake tools in vscode:
Screenshot 2022-04-20 at 17.46.25.png
Screenshot 2022-04-20 at 17.46.25.png (72.57 KiB) Viewed 3153 times
Inspired by this video using cLion: https://www.youtube.com/watch?v=zFh892X4aa4
Last edited by ArjunaDev on Wed Apr 20, 2022 3:50 pm, edited 1 time in total.

Return to “SDK”