Guru Meditation Error of type IllegalInstruction?
Posted: Fri Jul 21, 2017 12:25 pm
Hello all,
I'm not too sure why this error is happening. I'm trying to start Wifi in AP mode, and I can't quite figure out the source of this error.
This is the register dump:
This is on line 91 in wifi.c:
esp_err_t err = esp_wifi_start();
GDB has the following to say about the source of the error:
How is it possible the error happens here? What's wrong with my code?
Before this I was getting stack overflow errors, which is why I decided to make a task for the actual initialization. Is it possible the problem originates because I'm calling the initializiation from the event loop?
I'm not too sure why this error is happening. I'm trying to start Wifi in AP mode, and I can't quite figure out the source of this error.
This is the register dump:
Code: Select all
Guru Meditation Error of type IllegalInstruction occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x400dc867 PS : 0x00060430 A0 : 0x00000000 A1 : 0x3ffc6580
0x400dc867: wifi_init at /home/rene/esp32/apps/josuino/main/src/josuino/comms/wifi.c:91
A2 : 0x3f402600 A3 : 0x3ffc6614 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800dc867 A9 : 0x3ffc6550
A10 : 0x00000000 A11 : 0x3ffc7d54 A12 : 0x3ffb2cd0 A13 : 0x3ffc6710
A14 : 0x00000001 A15 : 0x00000005 SAR : 0x00000004 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace: 0x400dc867:0x3ffc6580 0x00000000:0x3ffc66a0
0x400dc867: wifi_init at /home/rene/esp32/apps/josuino/main/src/josuino/comms/wifi.c:91
esp_err_t err = esp_wifi_start();
GDB has the following to say about the source of the error:
Code: Select all
Reading symbols from ./build/app-template.elf...done.
Remote debugging using /dev/ttyUSB0
uart_tx_char (uart=0x3ffb1718, c=21) at /home/rene/esp32/esp-idf/components/vfs/./vfs_uart.c:43
43 while (uart->status.txfifo_cnt >= 127) {
Before this I was getting stack overflow errors, which is why I decided to make a task for the actual initialization. Is it possible the problem originates because I'm calling the initializiation from the event loop?
Code: Select all
case SYSTEM_EVENT_ETH_GOT_IP:
JOS_LOGI("Attempting to start Wifi in AP mode...");
//Starting Wifi with STA now will cause conflicts.
josuino_wifi_init(WIFI_MODE_AP);
JOS_LOGV("Returned from josuino_wifi_init to SYSTEM_EVENT_ETH_GOT_IP handler");