-
Notifications
You must be signed in to change notification settings - Fork 447
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
Add SparkFun Thing Plus RP2350 #2605
Add SparkFun Thing Plus RP2350 #2605
Conversation
Oops, shouldn't forget this!
Thanks for the addition! I think this is down to the SDK build and includes. For the RP2040 based boards we use There are also a bunch of places where we've got Oddly enough, the fact that the CYW43 driver is in the SDK makes this more of a pain here. The wireless ESP32 and WINC1500 and other wired Etherned For now, is there some special SDK you're building with to get the magic bits for the CYW43 library while on your board? I don't think the release version can make that happen on any RP2350 board... |
Thanks for the explanation, that makes sense now!
No. Everything builds and runs fine without the radio stuff, then I just copied from the Pico W variant. After seeing the include error, I decided to just make the PR in the hopes someone would know what the problem was so I didn't have to dig. Saved me a lot of head scratching! 😄
Yes, that would be a great feature! Given where things are going (cough and cough), best to have something generic for any board to include the radio stuff as needed (some relevant work here and here for the Pico SDK v2.1.0 release). I imagine that will take some time. Would it make sense for me to remove the radio stuff from this board for now? I can then make a separate PR to add the radio stuff back, which can get merged once more generic radio support is done. |
Would you like us to send you one of these boards to help with development? If so, can follow up via email. |
I did some investigation and there are several things that need to fall into place to get CYW43 running on non-RP2040-PicoW boards.
The 2.0.0 SDK has hardcoded defines for the pinout of the CYW43 chip. On the RP2040/PicoW that's no big deal, there is only one physical setup to worry about. On the RP2350 with multiple Wifi PCBs, that will need to be abstracted (we need to build the SDK using Cmake outside of Arduino, so only build a single .A for all CPU archs, not for all PCBs). Defines like Once that's running, then an additional define, So, I see a couple options. You may want to consider going radio-free to start, and then I can work on my own to get the CYW43 stuff up later. Or, I can start a new dev branch/PR with the changes above and you can rebase this PR to that branch. When it's good, we can merge this Pr into that branch, then merge that branch to --edit-- One other option would be to split out the cyw43 Cmake into its own library and pull that in on an individual basis. If the constant definitions become too much of a hangup, then a hardcoded list of pinouts in the |
Thanks for working on this, much appreciated! Perhaps this should be tracked in a dedicate issue?
If we do this, would you be able to cut a v4.2.1 release so our board is at least accessible for users right away? If so, I can remove the radio stuff from this PR and make a new one to add it back against your new dev branch. |
Sure, I was planning on doing a release anyway since this could be a little bit involved. Releases are automated and only take about 1 minute of my time to clean up the notes. Do you have pinouts for the CYW43 interface on your board in the SDK |
Will need to add back once full radio support is added, see earlephilhower#2605
#2608 for the tracking issue... |
Great, thanks so much! I've updated this PR to remove the radio stuff. Can open a new PR against your development branch for #2608 once that's ready.
See here: raspberrypi/pico-sdk#2038 This board uses the same pinout for the radio as the Pico W. |
Looks like we're passing. Good to merge this one? |
Yep, good with me! Thank you! |
Upcoming board from us!
Note - currently not compiling when including the radio stuff. Not sure why, because it's an exact copy from the Pico W board definition. Help would be appreciated, thanks!