Serial 2 / UART crashed USB

Hi,

i used the following code to add an additional Serial port to my nano RP2040. Unfortunately now i can not connect via USB to the board anymore. Is there anything i can do? Or do i need to buy a new board...

Help would be very much appreciated.

Thanks!

Sebastian

DO NOT USE THIS CODE UNLESS YOU KNOW WHAT YOU ARE DOING

#include "pinDefinitions.h"

UART mySerial (digitalPinToPinName(2), digitalPinToPinName(3), NC, NC);

int i = 0;

void setup() {
  mySerial.begin(9600); 
  while(!mySerial);

  
  mySerial.println("Hallo vom Bluetooth Modul");
}

void loop() {


  mySerial.print(i);
  mySerial.println(" von Bluetooth");
  i++;
  delay(100);

}


Here some related topic I found. Serial2 on Raspberry Pi Pico - #2 by khoih-prog

Ok, I found the solution. It worked with the Jumper cable as described in here: https://docs.arduino.cc/tutorials/nano-rp2040-connect/rp2040-01-technical-reference

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.