I’m have a horrid time getting my new seeed esp32s3 sense to work with the seeed 1262 LORA - both are presoldered - the esp refuses to ‘see’ the lora even when I use all the proper b2b header pins. Pins cleaned - modules securely seated - See below. Any ideas? I’ve tried two different lora and both return code -2 errors.
// ========================================================
// Simple LoRa Detection Test for Seeed Wio-SX1262 on XIAO ESP32S3 (B2B)
// Confirms if the SX1262 module is present or not
// ========================================================
#include <RadioLib.h>
// Your exact B2B pins from the main sketch
#define PIN_NSS 41
#define PIN_DIO1 39
#define PIN_RST 42
#define PIN_BUSY 40
// SX1262 instance
SX1262 radio = new Module(PIN_NSS, PIN_DIO1, PIN_RST, PIN_BUSY);
void setup() {
Serial.begin(115200);
delay(5000); // Long delay for USB/serial + power stabilization
Serial.println(“=== SIMPLE LoRa MODULE DETECTION TEST ===”);
Serial.println(“Hardware: XIAO ESP32S3 + Wio-SX1262 via B2B”);
Serial.println(“Pins: NSS=41, DIO1=39, RST=42, BUSY=40”);
Serial.println(“Antenna attached? Boards snapped tight? Pads clean?”);
Serial.println(“Starting detection…”);
// Explicit SPI setup (B2B pins)
SPI.begin(7, 8, 9, PIN_NSS); // SCK=7, MISO=8, MOSI=9, SS=41
delay(500);
// Soft reset
Serial.println(“Performing soft reset…”);
radio.reset();
delay(500);
// Try TCXO 1.6 V first
Serial.println(“Trying TCXO 1.6 V…”);
radio.setTCXO(1.6);
delay(200);
int state = radio.begin(915.0, 125.0, 11, 5, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, 14, 8, 0);
Serial.print("First attempt result: ");
Serial.println(state);
if (state == RADIOLIB_ERR_NONE) {
Serial.println("SUCCESS! SX1262 MODULE DETECTED AND WORKING");
Serial.println("Chip responds correctly → hardware is good");
Serial.println("Use TCXO 1.6V in your main code");
} else {
Serial.println("First attempt failed. Trying TCXO 1.8 V...");
radio.setTCXO(1.8);
delay(500);
radio.reset();
delay(200);
state = radio.begin(915.0, 125.0, 11, 5, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, 14, 8, 0);
Serial.print("Second attempt result: ");
Serial.println(state);
if (state == RADIOLIB_ERR_NONE) {
Serial.println("SUCCESS! SX1262 MODULE DETECTED on second try");
Serial.println("Hardware is good → use TCXO 1.8V in main code");
} else {
Serial.println("BOTH ATTEMPTS FAILED");
Serial.println("Module not detected (code != 0)");
Serial.println("This is a hardware problem:");
Serial.println(" - B2B connector not making full contact (even if tight)");
Serial.println(" - Faulty Wio-SX1262 module (new hardware can be DOA)");
Serial.println(" - Power/USB issue (try different cable/port/PC)");
Serial.println("Next step: contact Seeed support or test with manual wires");
}
}
}
void loop() {
// Idle
}