But when i call this, i'll get
Code: Select all
I (2588) wifi: mode : null
I (3388) Hinweis: Core 1 for time intensive operation active!
I (3388) wifi: ic_enable_sniffer
Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.
Register dump:
PC : 0x4010508c PS : 0x00060f30 A0 : 0x80116ca0 A1 : 0x3ffe1060
0x4010508c: _vfprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/
../../../.././newlib/libc/stdio/vfprintf.c:860
A2 : 0x3ff96458 A3 : 0x00000000 A4 : 0x3ffc6a78 A5 : 0x3ffe13a0
A6 : 0x3ffe1380 A7 : 0x00000008 A8 : 0x3ffe14c4 A9 : 0x00000000
A10 : 0x00000001 A11 : 0x3ff9c510 A12 : 0x000000ff A13 : 0x0000ff00
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000064 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff
Backtrace: 0x4010508c:0x3ffe1060 0x40116c9d:0x3ffe1370 0x40116695:0x3ffe13c0
0x4010508c: _vfprintf_r at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/
../../../.././newlib/libc/stdio/vfprintf.c:860
0x40116c9d: fprintf at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../.
./../.././newlib/libc/stdio/fprintf.c:56
0x40116695: _Z17preparing_hexdumpPv at D:/msys32/home/Eric/esp/esp-idf/bachelorarbeit/promiscuous_mode_esp32/main/promis
cuous_mode_esp32.cpp:207
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x1b (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0010,len:4
load:0x3fff0014,len:5108
load:0x40078000,len:0
load:0x40078000,len:12664
entry 0x40078f50
I tested two ESP32s. Both with the same error, so it has something to do with this (weird) source code. What could it be?
For everyone who wants to try this: You don't need all those periphals (except sd card in 1 line mode). As soon you type 'make monitor' the script will start initializing.