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

RP2350 equivalent of __isPicoW? #2741

Closed
jhmaloney opened this issue Jan 7, 2025 · 2 comments
Closed

RP2350 equivalent of __isPicoW? #2741

jhmaloney opened this issue Jan 7, 2025 · 2 comments

Comments

@jhmaloney
Copy link

The RP2040 had a global variable __isPicoW set to true at power up (in cores/rp2040/cyw43_wrappers.cpp) if the board has a cyw43 chip. It is returned by isPicoW() defined in RP2040Support.h. However, that variable is not defined when I compile the code for an RP2350 Pico2-W board.

That feature is very useful for MicroBlocks, an educational programming language. It allows us to distribute a single firmware binary that works on both Pico and Pico-W boards. That avoids potential confusion since users cannot accidentally install the wrong firmware for their board. Many of our users are new to microcontrollers so the difference between Pico and Pico-W boards is not as obvious to them as it is to more experienced users.

Is there an equivalent way to detect the presence of the cyw43 on the RP2350? If not, what happens if you try to use the cyw43 on a board that does not have one?

@lyusupov
Copy link
Contributor

lyusupov commented Jan 8, 2025

Duplicates #2671

@jhmaloney
Copy link
Author

Glad you and Earle are already working on this. You can close this issue; I will follow #2671.

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

3 participants