We're working on an IoT project, our previous developer left us and now we're stuck with some code we can't get to work properly. Anyway, the device sets up the access point, but once we try to connect it keeps resetting. Looking at the output in the serial monitor, we get the following:
00:44:43.131 -> ets Jun 8 2016 00:22:57
00:44:43.131 ->
00:44:43.131 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
00:44:43.131 -> configsip: 0, SPIWP:0xee
00:44:43.165 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
00:44:43.165 -> mode:DIO, clock div:1
00:44:43.165 -> load:0x3fff0018,len:4
00:44:43.165 -> load:0x3fff001c,len:1044
00:44:43.165 -> load:0x40078000,len:8896
00:44:43.165 -> load:0x40080400,len:5816
00:44:43.165 -> entry 0x400806ac
00:44:43.496 -> E (32) gpio: io_num=34 can only be input
00:44:43.496 -> E (33) gpio: gpio_set_level(176): GPIO output gpio_num error
00:44:43.496 -> E (33) gpio: io_num=35 can only be input
00:44:43.529 -> E (34) gpio: gpio_set_level(176): GPIO output gpio_num error
00:44:43.529 -> Started with state 0
00:44:43.662 -> dhcps: send_offer>>udp_sendto result 0
00:44:43.695 -> Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled.
00:44:43.695 -> Core 0 register dump:
00:44:43.695 -> PC : 0x00000000 PS : 0x00060e30 A0 : 0x8013a231 A1 : 0x3ffb40c0
00:44:43.695 -> A2 : 0x3ffcd3a8 A3 : 0x3ffcd5dc A4 : 0x3ffbdb14 A5 : 0x3ffbd46c
00:44:43.695 -> A6 : 0x0201a8c0 A7 : 0x0c01a8c0 A8 : 0x8013a0d4 A9 : 0x3ffb4080
00:44:43.728 -> A10 : 0x3ffcd3b8 A11 : 0x3ffcd5dc A12 : 0x3ffb40cc A13 : 0x00000044
00:44:43.728 -> A14 : 0x00000001 A15 : 0x00000006 SAR : 0x00000010 EXCCAUSE: 0x00000014
00:44:43.728 -> EXCVADDR: 0x00000000 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0x00000000
00:44:43.728 ->
00:44:43.728 -> Backtrace: 0x00000000:0x3ffb40c0 0x4013a22e:0x3ffb4100 0x4014628d:0x3ffb4120 0x4014b295:0x3ffb4160 0x40150532:0x3ffb4180 0x4013a99b:0x3ffb41a0 0x40088b9d:0x3ffb41d0
00:44:43.761 ->
00:44:43.761 -> Rebooting...
And it keeps looping until we stop trying to connect. I decoded the exception to:
PC: 0x00000000
EXCVADDR: 0x00000000
Decoding stack results
0x4013a22e: dhcps_start at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/apps/dhcpserver/dhcpserver.c line 1140
0x4014628d: udp_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/udp.c line 415
0x4014b295: ip4_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4/ip4.c line 770
0x40150532: ethernet_output at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/netif/ethernet.c line 293
0x4013a99b: tcpip_inpkt at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/tcpip.c line 214
0x40088b9d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143
Does that make sense to anyone? I'm not a developer, I can just read code somewhat, but am trying my best to help until we get a new developer on board :) Any help about the next possible steps in debugging this out will be greatly appreciated! Thanks in advance!
User contributions licensed under CC BY-SA 3.0