Error when trying to use SoftwareSerial on RP2040 Connect

I'm trying to use SoftwareSerial on RP2040Connect, and am getting a strange warning and error. I can't figure out whats wrong. code posted below:

WARNING: library EspSoftwareSerial claims to run on esp8266, esp32 architecture(s) and may be incompatible with your current board which runs on mbed_nano architecture(s).

'void std::setup()' conflicts with a previous declaration

'''

#include <SoftwareSerial.h>

SoftwareSerial mySerial(2, 3); // RX, TX

void setup() {
mySerial.begin(9600);
}

void loop() {
delay(10000);
mySerial.println("Testing Part 1");
delay(10000);
mySerial.println("Testing Part 2");
}

'''

Use the hardware serial port (Serial1) instead. SoftwareSerial should be the last resort.

That seems fairly self-explanatory.

But why is it defaulting to the esp version instead of the built in software serial.?

You either have the wrong SoftwareSerial library installed, or there is none that supports the RP2040.

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