Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4834

Other RP2040 boards • Custom RP2040 Board only 'likes' one uf2 file

$
0
0
TLDR:
I have a custom board, and a single provided uf2 file. The board booted with the provided uf2 file and works fine with serial communication. Any other file I have tried to boot appears to run but does not have serial communication with the PC. I'm not even sure how this could occur. (I have run flash_nuke.uf2)

Background:
I'm a programmer by profession and a hobbyist when it comes to micro controllers. I've played with Arduino, teensy, raspberry pi, etc in the past with zero issues. Recently I've been trying to assist in a project that is using a custom RP2040 board that was made in house. I was given the board, a UF2 flash file, and the source code for the flash (written for the Arduino IDE). I can't give out the board files or the source code sadly but I'm mostly looking to be pointed in the direction for a solution to this really strange issue I'm running into.

The issue:
If I bootsel the RP2040 and upload the UF2 flash file everything will work fine. The board has serial connection to the computer and data can be sent back and forth. This is the only time I can ever get serial communication with the board to work outside of bootsel. If I take the source code given to me, compile it in the Arduino IDE, and upload the uf2 file it will no longer work. Thinking there was just some bug in the source code I was given I then pivoted to using the regular development chain of VSCode with C++ or Thonny with Python. Absolutely nothing I do can get the board to communicate with serial. I have run flash_nuke.uf2 many times as I know the provided uf2 file does some flash writing.

What I've tried:
  • I have uninstalled and reinstalled vscode multiple times
  • I have run linux on a virtual machine and compiled code there
  • I have used the precompiled uf2 files of the example program github
  • I have tried the micropython route (which doesn't work because of the lack of serial communication)
I'm not really sure what else to do. I have a regular raspberry pi pico that works as expected, so I believe my workflow to be okay. This custom board does not have debug pads or any debug led so I've been using reset_usb_boot(0, 0); to prove to myself that my code isn't just error-ing out. The only thing I can think of that's left is to get a fresh never flashed board and see if that helps for some reason.

Any help/information would be greatly appreciated.

Statistics: Posted by nick1216 — Wed Sep 18, 2024 10:47 pm



Viewing all articles
Browse latest Browse all 4834

Trending Articles