I have designed and tested a custom RP2040 board for simple GPIO ON/OFF functioning and everything worked just fine. Now, we have ordered 30 more of the same circuits (with same design and components).
From the stack of 30, we are facing issues with 6-12 circuits for detecting the chip (on windows) and uploading code.
The design and the components even the manufacturer is the same for the components, we have not changed a single bit.
Currently for those 12 circuits, we are able to detect pico as a mass storage device but whenever we upload a uf2 file (in this case I am only trying to upload a simple blink program with a working GPIO on the circuit) the chip acts unstable and every GPIO is at floating voltage of about 0.5 V including DP DN pins.
When we try to upload code from an Arduino IDE, sometimes the chip gets detected and sometimes it does not, which is so strange. While uploading through Arduino IDE we get an error saying "Device Descriptor Request Failed" or "Set address failed". Sometimes the device does get detected too, and we can see Raspberry Pi Pico on the ports section of IDE, and the code gets uploaded as well but after re-plugging, it acts the same (unstable and unable to detect). and sometimes (6 circuits from the 12 circuits) got detected after showing the same errors before and now they work fine out of nowhere even after re-plugging it. I was unable to detect the issue, but the circuits now are working fine.
The voltage supplied to the chip is stable, the crystal we have used is according to the guidelines given. The dp dn resistor used is 27 Ω. Basically, the hardware design is tested before and is according to the requirements. I have gone through many forums and issues posted, rechecked all the mistakes made from the hardware and the software side, but I am still not able to find the issue and the solution for this.
I have been struggling with this for the past few weeks and now I am in shock and curious to know what exactly is happening.
Can anyone please let me know where am I going wrong or what should I at least do to debug this issue?
Any help will be appreciated regarding this.
Thank You.
Schematic and PCB design: