Flashing uf2 file into RP2040 PCB

January 2, 2024, 17:41

kelwin4598

Hey there, I have designed a keyboard PCB with RP2040, and created a uf2 file for the pcb to work with QMK firmware. However when I am uploading the file to the RPI-RP2 file, it repeatedly reopens itself instead of closing. Is there a solution to the problem? Thanks in advance

_krazy.

Maybe there's an issue with data transportation which causes the folder to disconnect?

_krazy.

Faulty soldering I suppose.

_krazy.

Check how the data pins are connected, and respond back to us, this project is really interesting.

kelwin4598

All pins of rp2040 are positioned and placed properly

kelwin4598

Have desoldered the reset and boot button and same issue still occurs

kelwin4598

Checked the schematic and matrix routing as well and there is no issue

kelwin4598

Might have to just swap back to atmega to continue my project since I cannot find anything else that can cause this problem

oops.se

If I remember correctly. There is two flash areas, one that has a valid uf2 and one that is for a upload of a new uf2. If a new uf2 is uploaded it will try to start it. If the new uf2 is starting the pointer for where the start area is is switched to the second flash are. If the new uf2 fails it doesn't switch to the new flash area but keep the "old uf2". So my guess is that your uf2 is failing to start. Do you have a JTAG debugger?

kelwin4598

Nope I don’t but I don’t think there is any problem with the firmware

kelwin4598

Because I have tried to flash it with a public release and same issue occurs

oops.se

Well that was my 20cent so I wish you good luck.

kelwin4598

I kinda gave up already

kelwin4598

Might have to swap to stm32 to continue my project

oops.se

Well a debugger is the key otherwise your driving in blind.