Hi,
I’ve been working with RAK modules for a few weeks, I’m happy to post on the forum today.
We have a range of Sigfox sensors that we want to migrate to LoRaWAN.
To simplify my first developments, I use the RAK3172 module (on a custom PCB) and RUI3.
I encounter a problem when I flash the module. I would like to point out that this module was reflashed several times with complete erasure of the memory after incorrect handling on my part (UART2 was no longer accessible).
Today, when I flash the module, it seems that the module crashes while running the setup.
Here is my test program (simple GPIO test):
#define LED1 PA8 // Test
#define LED2 PA9 // Test
#define VREFON_PIN PA1 // Voltage ref activation
#define INT_PIN PA0 // RTC Interrupt
void setup()
{
Serial.begin(115200);
delay(5000);
Serial1.begin(115200);
Serial1.println("--------------");
Serial1.println(PA8);
Serial1.println(PA9);
Serial1.println(PA1);
Serial1.println(PA0);
Serial1.println("--------------");
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(VREFON_PIN, OUTPUT);
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(VREFON_PIN, LOW);
Serial.println("Go !");
}
void loop()
{
Serial1.println("HIGH");
digitalWrite(LED1, HIGH);
digitalWrite(LED2, HIGH);
digitalWrite(VREFON_PIN, HIGH);
delay(1000);
Serial1.println("LOW");
digitalWrite(LED1, LOW);
digitalWrite(LED2, LOW);
digitalWrite(VREFON_PIN, LOW);
}
When running I have no output on UART2.
On UART1, the first information is displayed then a sort of crash dump appears:
8
9
1
0HIGH
LOW
HIGH
–stm32wle5xx▒▒▒Y\RAKwireless RAK3172@------------------------------------------------------=▒=H▒▒▒▒▒▒sҖ"s▒▒▒k▒[▒▒Y▒A
▒▒▒E▒I▒▒n▒▒▒ⷛT▒F▒x▒r8Cț▒▒0O▒▒-▒^▒▒3J▒d▒▒8▒▒9)W▒▒▒ù▒▒)▒ ▒▒a▒ٶ▒▒▒|s▒4▒p▒▒T
JOiĿ▒)▒▒▒▒:▒▒ߺ:▒:D▒▒▒▒1N▒▒Г3▒)▒ȷ▒▒▒▒y ▒l}▒▒`A▒O▒▒LC$2▒▒▒▒v▒▒▒▒W0
7▒▒[4 ▒7▒Z▒"▒▒ q▒G▒Z▒▒
O▒▒-▒g#,
~w$▒▒▒▒▒
From this moment, it is impossible to deploy a new program (“can not get the baudrate”).
I have reflashed the RAK3172-E_latest_final.hex firmware several times but the module does not work any better.
I’m afraid my module is broken.
Can you tell me what’s wrong or confirm that the module is dead?
Thanks,
Joch