Qualcuno dice che serve cancellare la memoria flash del ESP32 quando comincia a dare i numeri
esptool --port COM3 erase_flash
Per chi usa linux:
invece di COM3 mettete l'indirizzo linux della porta USB
ho rpovato anche io una volta il decoder delle eccezioni sull 8266, buona cosa che sia stato aggiornato anche per il 32.
ma poi ti ha aiutato a beccare il rpoblema ? perche' a me non aiuto' piu' di tanto
Io lo uso parecchio, lo trovo molto utile.
fate un esempio,
tipo come si interpreta il risultato di roboticboyer ?
e' importante quella scritta discriminator 1 ?
Io ho interpretato che la CPU si è bloccata quando ha eseguito la linea 11 del main.cpp
0x4010015d: loopTask(void*) at /arduino-1.6.13/hardware/espressif/esp32/cores/esp32/main.cpp line 11 (discriminator 1)
Sembra che l'errore segnalato da Busco capiti anche ad altri:
opened 10:07AM - 30 Dec 16 UTC
closed 07:56PM - 05 Mar 17 UTC
Hello,
I updated the repository and compiled my pending buggy WiFi project.
… This update seems to solve the WiFi issue and the program runs but after a variable delay it crashes with the following output :
>Requesting resource: /data/2.5/weather?appid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&q=Town,CC
Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.
Register dump:
PC : 0x400847f7 PS : 0x00060a33 A0 : 0x80083dbe A1 : 0x3ffdbf00
A2 : 0x0000001d A3 : 0x3ffdbf84 A4 : 0x00000004 A5 : 0x3ffd59b8
A6 : 0x3ffdbfb0 A7 : 0x00000000 A8 : 0x800828a2 A9 : 0x3ffdbef0
A10 : 0x00000003 A11 : 0x00060a23 A12 : 0x00060a23 A13 : 0x00000000
A14 : 0x00000001 A15 : 0x3ffc0800 SAR : 0x00000010 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000021 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
>
>Backtrace: 0x400847f7:0x3ffdbf00 0x40083dbe:0x3ffdbf20 0x40082b91:0x3ffdbf40 0x400e1e15:0x3ffdbf80 0x400db3d5:0x3ffdbfb0 0x400e2070:0x3ffdbfe0 0x400e237c:0x3ffdc000 0x400dac58:0x3ffdc040 0x400db07d:0x3ffdc0c0 0x400db0d5:0x3ffdc0f0 0x400d10a0:0x3ffdc110 0x4010635d:0x3ffdc130 0x400d1f18:0x3ffdc160 0x400d1f54:0x3ffdc180 0x400d0e6e:0x3ffdc1a0 0x400ff15d:0x3ffdc210
>
>CPU halted.
Could someone tell me what the origin of this issue could be?
What can I do to help to debug this issue?
If necessary, I can provide the source code of this small test application.
Thanks in advance.
Thoma
opened 03:38PM - 07 Jan 17 UTC
closed 12:50AM - 02 Mar 17 UTC
Status: Test needed
Hi,
i wanted to implement a WifiServer on the ESP32 with Arduino. I tried dif… ferent examples from ESP8266, but i didn't get it working.
I updated the latest Version of Arduino for ESP32 from github today.
I setup the ESP32 as AccessPoint and startet the WifiServer. I can connect and send a request. The ESP32 sends the response, but then resets the connection, according to curl. So InternetBrowsers and curl are showing me errors.
Can you please have a look what I have done wrong? Or is this a bug?
Error with curl:
```
curl http://192.168.4.1
<!DOCTYPE HTML>
<html><h1><Hello World!</h1></html>
curl: (56) Recv failure: Connection reset by peer
```
Here is my Sketch:
```
#include <WiFi.h>
const char* WIFI_SSID = "ESP-Accesspoint";
const char* WIFI_PASSWORD = "geheimPasswort";
WiFiServer server(80);
void setup(void) {
Serial.begin(115200);
WiFi.mode(WIFI_AP);
WiFi.softAP(WIFI_SSID, WIFI_PASSWORD);
server.begin();
}
void loop(void) {
// Check if a client has connected
WiFiClient client = server.available();
if (!client) {
return;
}
// Wait until the client sends some data
Serial.println("New client");
delay(1);
// Read the first line of the request
String request = client.readStringUntil('\r');
Serial.print("Request: ");
Serial.println(request);
client.flush();
String s = "HTTP/1.1 200 OK\r\n";
s += "Content-Type: text/html\r\n\r\n";
s += "<!DOCTYPE HTML>\r\n";
s += "<html><h1><Hello World!</h1></html>\r\n";
Serial.println("Response:");
Serial.println(s);
client.println(s);
client.flush();
delay(1);
Serial.println("Client disonnected"); //When method ends
}
```
Thanks in advance and Greetings
Dennis
opened 07:08AM - 13 Feb 17 UTC
closed 05:41PM - 29 Mar 23 UTC
Type: For reference
My current Application crashed with the last version of arduino-esp32. Last Frid… ay, everything worked very well. I cloned the last version this morning, started get.exe etc. everything looks good. The Application compiles fine & upload finishes with no errors, but immediately after upload:
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0008,len:8
load:0x3fff0010,len:1760
load:0x40078000,len:6668
load:0x40080000,len:252
entry 0x40080034
E (1122) wifi: wifi_init 1143 ret=4363
Connecting to SmartCubeAP
/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/freertos/./queue.c:721 (xQueueGenericSend)- assert failed!
abort() was called at PC 0x4008343f
Guru Meditation Error: Core 1 panic'ed (abort)
Backtrace: 0x40008155:0x3ffcf510 0x40007d16:0x3ffcf530 0x40097144:0x3ffcf570 0x400f3a5c:0x3ffcf5c0 0x400ed50f:0x3ffcf5e0 0x400d14fe:0x3ffcf610 0x400d155a:0x3ffcf640 0x400d15d3:0x3ffcf660 0x400d0ed7:0x3ffcf760 0x400d0f37:0x3ffcf790 0x40105a3a:0x3ffcf7b0
CPU halted.
ExceptionDecoder give me this:
Decoding 11 results
0x40097144: pp_post at ?? line ?
0x400f3a5c: ieee80211_ioctl at ?? line ?
0x400ed50f: esp_wifi_start at ?? line ?
0x400d14fe: WiFiGenericClass::getMode() at c:\arduino\arduino-1.8.1\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\bits/stl_vector.h line 923
: (inlined by) WiFiGenericClass::getMode() at C:\Arduino\arduino-1.8.1\hardware\espressif\esp32\libraries\WiFi\src/WiFiGeneric.cpp line 259
0x400d155a: WiFiGenericClass::enableSTA(bool) at c:\arduino\arduino-1.8.1\hardware\espressif\esp32\tools\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\5.2.0\bits/stl_vector.h line 923
0x400d15d3: WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at C:\Arduino\arduino-1.8.1\hardware\espressif\esp32\libraries\WiFi\src/WiFiSTA.cpp line 557
0x400d0ed7: setup_wifi() at C:\Users\ts\OneDrive\!P\GCube\FW\MicroCube\TVOC2MQTT_1\TVOC2MQTT_1/TVOC2MQTT_1.ino line 81
0x400d0f37: setup at C:\Users\ts\OneDrive\!P\GCube\FW\MicroCube\TVOC2MQTT_1\TVOC2MQTT_1/TVOC2MQTT_1.ino line 62
0x40105a3a: loopTask(void*) at C:\Arduino\arduino-1.8.1\hardware\espressif\esp32\cores\esp32/main.cpp line 11 (discriminator 1)
ma il main.cpp e' nel core, vai a modificare quello ?
il rpoblema e' nel tuo .ino no ?
Lo stacktrace si legge al contrario :). Il punto dove si è piantato è nella prima riga, che è stata invocata dalla seconda, ecc... Fino al main, dove il programma è partito.
zoomx
March 8, 2017, 7:12am
72
Quindi freertos, list.c linea 214
che e' ugualmente nel core e quindi non ci mettiamo mano.
L'unica indicazione utile che riguarda un .ino e'
SimpleWiFiServer_13.ino line 51
E' qui il problema ?
I casi sono due: o c'è un problema nella libreria (improbabile), o nel proprio sketch si fa qualcosa che la fa crashare. Bisogna fare dei test e cercare di capire l'arcano.
certo, ma a questo punto torniamo alla mia affermazione originaria, cioe' che sto decoder non mi dice il problema, in cosa mi aiuta ?
Alla fine sei sempre tu nel tuo .ino a dover risolvere
Questo è un caso un po' sfortunato, ma lo stacktrace in generale è utilissimo, perché almeno sai esattamente DOVE si è piantato il programma.
Questo caso andrebbe analizzato un po' meglio, ma comunque qualcosa di utile te lo dice.
busco
March 15, 2017, 7:58pm
77
Ho provato più volte il codice che ho proposto nel post #63
su una scheda ESP8266 (una wemos) sostituendo solo la libreria
con la ESP8266WiFi.h ed ha funzionato perfettamente per ore.
Qualcuno ha informazioni su come implementare codice che utilizzi il Bluetooth classic su ESP32?
busco
April 15, 2017, 7:31am
79
biccius:
Qualcuno ha informazioni su come implementare codice che utilizzi il Bluetooth classic su ESP32?
Non l'ho ancora provato, vorrei veder funzionare il WiFi.
Come segnalato sopra ho ancora dei problemi.
Tu lo hai provato il WiFi?
il bluetooth non e' stato ancora implementato nel core Arduino.
Lo si puo' usare solo con l'SDK ufficiale, e comunque ho letto che non si puo' far funzionare contemporaneamente wifi+BT
Da tempo avevo i sospetti, ora e' arrivata la conferma ufficiale:
Bug su Chip ESP32
Tra l'altro problemi da poco..
Non capisco il senso si rilasciare una cosa che non funziona
Sono costretto a ripiegare su esp826
Peccato
Un sito ricco d' informazioni sul ESP32: