Reprogramming the RP2040?

Hello, I found some place online for a custom RP2040 bootloader. I wanted to remap some pins. Well That didn't go to well. I don't remember why I wanted to remap some pins for it was a while back. But now the board doesn't work I can not even get a USB to see on the computer. I would like to reprogram back the board. I did notice it has the SWD pins for programming like the Arduino zero board does. I was wondering in windows what steps I would need to reput back the original bootloader? Can someone help me to figure this out?

Joseph

Did you try the technique described here yet?

https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-01-technical-reference#board-not-detected

Hello in0, I havbe not seen that page before. I'm looking at it now. Thank you

Edit: The problem with mine is no bootloader firmware at all on it. It's blank. I'm unsure how, where I can put a bootloader firmware on it.

Joseph

what RP2040 board do you have? RP2040 has a bootloader in ROM from factory.

I bought one from amazon. Everything was working until I flushed the winbond chip and or the rp2040 over 8 months ago now I don't remember how But it dosen't even recognize on the computer. What I mean I plug it into the computer and it doesn't even come up. Seems like the native usb is not showing up.

I knows it's not dead because 7 or so months ago it was working until I changed the bootloader/firmware from it.

Joseph

Please, just try the instructions I linked.

The one from you or Juraj?

Edit: I'm looking at both.

Joseph

I asked and looked around online and a couple of forums they told me and Think I might of figure it out. It seems the Pico firmware is stored in Ram. So I might of not knocked that out. All I need to do is upload new code Through the SWD pins and will be able to get back the Native USB pins.

Joseph

Did you try the instructions I linked?

From your Link it is not the same board as mine. The pi pico I have doesn't have a Rec pin on it. I read to where if the USB gets locked up that I can connect the Rec pin to ground then press the reset button. Also on my board it says bootsel on the button.

Joseph

https://github.com/earlephilhower/arduino-pico#uploading-sketches

That button provides the equivalent of shorting the REC and GND pins on the Nano RP2040 Connect. Arduino just didn't put a button on the board for it.

The Pico-specific documentation for it is here:

https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html#resetting-flash-memory

Hey in0, That explains a lot Thank you. I didn't know how to reset it because Windows wasn't seeing it. So I did hold down the Bootsel button then plug it in and now windows see's it as before and the window pops up from when It was default like before. Thank you very much.

Joseph

You are welcome.

I apologize for the confusion caused by my assumption that you were using a Nano RP2040 Connect. It is kind of easy to assume everyone is using the Arduino boards, but definitely important for us to remember that the Arduino tools/frameworks/etc. support a huge amount of 3rd party hardware as well. Juraj was on the right track.

I actually do own a Pico, but never used it yet. All my experimentation with the RP2040 so far has been using my Nano RP2040 Connect boards. But the Pico is so reasonably priced that it seemed silly not to grab one for my board hoard.

I wanted to get one. But Sense I'm now less then on a budget I can not pick up anything new :frowning: wifes orders. Hopefully when I go back to work full time Then I can pick one up. Crazy thing is I have a pack of 5 of the rp2040 Processors chips from a few months back. I just had no time to do anything with them.

Joseph