Good morning,
I want to communicate with an ESP32 from a Python script on my PC.
I send a chain and in return, the ESP32 sends me the data received to confirm. Everything is going well but at each end of the data return, a fault is added
(assert failed: xQueueSemaphoreTake queue.c:1549)
with several lines of hex code, certainly RAM addresses. This flaw exists both in my script and with the serial monitor of the Arduino IDE (latest version).
Below is the ESP32 code:
int i = 0;
while(Serial.available()) {
recep[i] = Serial.read();
delay(5);
if (recep[i] > 0 && recep[i] < 256) {
if (recep[0] == 36 && recep[1] == 99 && recep[2] == 115 && recep[3] == 118 && i > 3) { // Get csv data ( $csv=.............;)
if (recep[5] == 45 && recep[6] == 110 && recep[i] != 95 && recep[i] != 10 && i > 6 && i < 24) {
csvName += char(recep[i]);
}
if (i > 23) {
csvFile += char(recep[i]);
}
}
}
// $csv=-nfirstfile________csvfilecontent
i += 1;
}
if (csvName != "") {
Serial.println("filename: " + csvName + ".csv");
csvName = "";
}
if (csvFile != "") {
Serial.println("file content: " + csvFile);
csvFile = "";
}
Does anyone know the meaning of this error message on a USB port please?