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

Switch board does not change anything #115

Closed
ObligedTester opened this issue Oct 29, 2024 · 4 comments
Closed

Switch board does not change anything #115

ObligedTester opened this issue Oct 29, 2024 · 4 comments

Comments

@ObligedTester
Copy link

ObligedTester commented Oct 29, 2024

Hello,

Recently found out about this vscode extension, seems like a fantastic upgrade to the eco-system!

To my question/issue:
I imported a copy of a project that I used with the SDK manually setup. It asked a couple of questions like SDK version and stuff.

All good, it builds fine and SWD working and so on, however, I wanted to try the feature of switching board to the pico 2.
Unfortunately, nothing seems to change. For example cmake outputs this:

[cmake] PICO_SDK_PATH is /home/user/.pico-sdk/sdk/2.0.0
[cmake] Defaulting platform (PICO_PLATFORM) to 'rp2040' since not specified.
[cmake] Defaulting target board (PICO_BOARD) to 'pico' since not specified.

I did delete my .build to make it as clean as possible.

Maybe im not using this feature correctly?

@will-v-pi
Copy link
Collaborator

For the switch board feature to work you need a set(PICO_BOARD… line in your CMakeLists.txt, which the extension then edits when switching boards - you can see an example of such line by creating a new project. We’re planning to add it to imported projects automatically, see #46

@ObligedTester
Copy link
Author

ObligedTester commented Oct 29, 2024

Ah that is cool! So it is only for imported projects then?

Also, is there another trick to choose release/debug for imported projects? I'm experiencing the same issue as raised here:https://forums.raspberrypi.com/viewtopic.php?t=374647

@will-v-pi
Copy link
Collaborator

Yes, this is only an issue for imported projects

To switch build type between release/debug, you need to use the CMake Tools extension integration, and then use the CMake Tools extension to do the switching - see the README for details

@ObligedTester
Copy link
Author

Thanks a lot. This covers it for me.

Thanks for your help and fantastic work on this extension for the pico!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants