Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

SDK • Re: SDK 2.0.0 Migration: #error no SW_SPIN_TRY_LOCK available

$
0
0
I have been plagued by this issue and I think it is due to the Pico VSCODE extension not configuring the Board correctly/ I run VSCODE on Windows and use the Pico extension V 0.17

I bring my repo down from github to a new PC and I see this ERROR when trying to complie.

1) Switch board to Pico ( using board: button on bottom right of VScode
2) answer the questions about Pico
3) DONT ACCCEPt the messge box that tell you to restart. Cancel that dialog
4) Delete the Build directory
5) Switch the Board: to PICO2 and answer the questions.
6) again , DONT ACCEPT the dialog that asks to restart ( just cancel dialog)
7)Delete build directory
8)Exit VScode
9) Start VSCODE
10) Configure the project
11) compile the project. It should work now

Once I do this i don't seem to get the error as long as I don't change SDK version or board:

DAve
I'm having to do this constantly since upgrading to SDK 2.1.0...

Happens whenever some config gets changed, also just happened when I tried to "clean CMake". I was only trying to get ninja to force a recompile, but really not sure its possible without deleting the "build" directory, and then going through these instructions every time.

Statistics: Posted by Neo_nmik — Fri Jan 03, 2025 4:57 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles