Hello, I’m having exactly the same problem as RAK3172 Arduino IDE RUI3 uploading problems - RUI - RAKwireless Forum
Detailed description:
- upload a sketch using arduino IDE correctly working
- after upload the sketch the device starts and the suddenly stops at some point
- trying again to re-upload the sketch won’t work as cannot find the correct boudrate
- using ST-LINK and STM Programmer I’m able to unbrick the module re-uploading the original firmware
- repeat the process, same result
I have tried different sketchs but the result is always the same.
This is the last one I’ve tried which is a simple I2C scanner:
#include <Wire.h>
void setup() {
Wire.begin();
Serial.begin(115200);
delay(5000);
Serial.println("\nI2C Scanner");
}
void loop() {
byte error, address;
int nDevices;
Serial.println("Scanning...");
nDevices = 0;
for (address = 1; address < 127; address++) {
// The i2c_scanner uses the return value of
// the Write.endTransmission to see if
// a device did acknowledge to the address.
Wire.beginTransmission(address);
error = Wire.endTransmission();
if (error == 0) {
Serial.print("I2C device found at address 0x");
if (address < 16)
Serial.print("0");
Serial.print(address, HEX);
Serial.println(" !");
nDevices++;
} else if (error == 4) {
Serial.print("Unknown error at address 0x");
if (address < 16)
Serial.print("0");
Serial.println(address, HEX);
}
}
if (nDevices == 0)
Serial.println("No I2C devices found\n");
else
Serial.println("done\n");
delay(5000); // wait 5 seconds for next scan
}
Is the module broken? I have other RAK3172 (actually 3372) and I don’t have this problem. We have a BME680 sensor board from RAK itself attached to the WisBase.