Raspberry Pi Pico uf2 build help?

Zaf

Zaf

Soldato
Joined
16 Jan 2003
Posts
6,881
Location
Derbyshire
Hi Folks,

Not sure if anyone can help me, but I'm looking for someone who can build some code from GitHub and generate a uf2 file please?
 

Zaf

Zaf

Soldato
OP
Joined
16 Jan 2003
Posts
6,881
Location
Derbyshire
Here's the main repository - https://github.com/fortizc/retro-pico-switch

There's a fork with the change I wanted but didn't have a uf2 build - https://github.com/fortizc/retro-pico-switch

Unfortunately, it looks like its 8 commits behind :(

I basically need it changing from GP18 to GP2 or GP3 so I can use a Seeed XIAO RP2040 instead of a Pico

Under Setup of the readme in the main repository it says "The pre-built .uf2 file assumes the data pin is on the Pico's GP18 pin."

Any help would be much appreciated, I tried compiling it using the Arduino IDE but couldn't get it to compile
 
Last edited:
Associate
Joined
14 May 2009
Posts
2,302
I've tried compiling the original DavidPagels files with the latest Pico SDK but nothing seems to get built. I put some garbage in the main.cpp file and there are no compilation errors. I'm new to cmake so currently no idea where it's going wrong.

I guess you'd need to make quite a few changes to go from a standard c/c++ project to an Arduino .ino based one.
 

Zaf

Zaf

Soldato
OP
Joined
16 Jan 2003
Posts
6,881
Location
Derbyshire
Thanks for trying, I did reach out to DavidPagels but he said he does not do customer builds! It's just frustrating he decided to choose such a high pin rather than a lower one.
 
Associate
Joined
14 May 2009
Posts
2,302
Had some success this morning, I can now build DavidPagels project. I thought I had changed it from the pico_w to a plain RP2040 and set the pin to 2 (from 18) however it appears I didn't save the change to the board type! If I attempt to build for a plain RP2040 it barfs and fails to compile.

You can download the picw_w / pin 2 uf2 file from https://www.avonrise.co.uk/retro_pico_switch/retro_pico_switch.uf2

Edited to correct my build boo-boo
 
Last edited:

Zaf

Zaf

Soldato
OP
Joined
16 Jan 2003
Posts
6,881
Location
Derbyshire
Had some success this morning, I can now build DavidPagels project. I thought I had changed it from the pico_w to a plain RP2040 and set the pin to 2 (from 18) however it appears I didn't save the change to the board type! If I attempt to build for a plain RP2040 it barfs and fails to compile.

You can download the picw_w / pin 2 uf2 file from https://www.avonrise.co.uk/retro_pico_switch/retro_pico_switch.uf2

Edited to correct my build boo-boo
Thanks so much, I'll give it a go now!

To answer your question regarding why I want to use a Seeed board rather than a Pico, is because it's smaller. The smaller the footprint the better :)
 

Zaf

Zaf

Soldato
OP
Joined
16 Jan 2003
Posts
6,881
Location
Derbyshire
Had some success this morning, I can now build DavidPagels project. I thought I had changed it from the pico_w to a plain RP2040 and set the pin to 2 (from 18) however it appears I didn't save the change to the board type! If I attempt to build for a plain RP2040 it barfs and fails to compile.

You can download the picw_w / pin 2 uf2 file from https://www.avonrise.co.uk/retro_pico_switch/retro_pico_switch.uf2

Edited to correct my build boo-boo
Only just got round to testing it, unfortunately it's not getting picked up by windows. I am trying it with a standard Pico and not a Pico W, would that make a difference?

Edit/ Just tried with a Pico W and I have the same issue, it's not showing in Windows.
 
Last edited:
Associate
Joined
14 May 2009
Posts
2,302
I've not tried it myself in a Pico, hoped it would just work for you especially with a W. Less surprised it doesn't work with a standard RP2040 board. Does Windows at least say you've plugged in a USB device it doesn't recognise?
 

Zaf

Zaf

Soldato
OP
Joined
16 Jan 2003
Posts
6,881
Location
Derbyshire
I've just had a look using another adapter I've built, and I can't see anything obvious in Device Manager, when I unplug it and plug it in, nothing new appears. But when I look at 'Setup USB game controllers' it's listed in there. Using your build it's not listed.

Don't worry about it mate, I feel like I've wasted enough of your time, I really do appreciate you trying though :)
 
Last edited:
Associate
Joined
14 May 2009
Posts
2,302
No problem, was in the process of trying the get the Pico C SDK installed and setup so it gave me something concrete to start with. Good luck with your other adapter.
 
  • Like
Reactions: Zaf
Back
Top Bottom