I am trying to perform a simple test of the RTK Postcard but receive the following error when trying to upload this sketch:
/*
SparkFun RTK Postcard - Hardware Serial GNSS Test Sketch
This sketch reads raw NMEA sentences from the Quectel LG290P GNSS module
via the ESP32 hardware serial port and forwards them to the USB Serial Monitor.
*/
// Define the HardwareSerial pins mapping to the LG290P module
// Adjust RX/TX pin definitions based on your specific layout if using custom mapping
#define RXD2 16
#define TXD2 17
#define GNSS_BAUD 115200 // LG290P default baud rate
void setup() {
// Initialize the USB Serial Monitor
Serial.begin(115200);
while (!Serial) {
; // Wait for the USB serial port to connect
}
Serial.println(“— SparkFun RTK Postcard Serial Test —”);
// Initialize HardwareSerial 2 connected to the GNSS receiver
Serial2.begin(GNSS_BAUD, SERIAL_8N1, RXD2, TXD2);
Serial.println(“Listening for GNSS data…”);
}
void loop() {
// Pass data from the GNSS module to the USB Serial Monitor
if (Serial2.available()) {
Serial.write(Serial2.read());
}
// Pass data/commands from the USB Serial Monitor back to the GNSS module
if (Serial.available()) {
Serial2.write(Serial.read());
}
}
Sketch uses 282041 bytes (21%) of program storage space. Maximum is 1310720 bytes.
Global variables use 22844 bytes (6%) of dynamic memory, leaving 304836 bytes for local variables. Maximum is 327680 bytes.
esptool v5.2.0
Serial port /dev/cu.usbmodem59320023421:
Connecting…
Connected to ESP32 on /dev/cu.usbmodem59320023421:
Chip type: ESP32-PICO-V3-02 (revision v3.0)
Features: Wi-Fi, BT, Dual Core + LP Core, 240MHz, Embedded Flash, Embedded PSRAM, Vref calibration in eFuse, Coding Scheme None
Crystal frequency: 40MHz
MAC: 64:b7:08:87:ae:6c
Uploading stub flasher…
A fatal error occurred: Failed to write to target RAM (result was 0107: Checksum error)
Failed uploading: uploading error: exit status 2








