I tested the code in a different board and got this output from monitor:
Code: Select all
Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0xfd5dfdfe PS : 0x00060031 A0 : 0x8008b012 A1 : 0x3ffb1fb0
A2 : 0x00000003 A3 : 0x00060023 A4 : 0x00060021 A5 : 0x3ffd349c
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800852b4 A9 : 0x3ffc5cb8
A10 : 0x3ffb28b4 A11 : 0x3ffb28b8 A12 : 0x00000000 A13 : 0x4015dae8
--- 0x4015dae8: queue_recv_wrapper at /home/gaston/esp/v5.4.1/esp-idf/components/esp_wifi/esp32/esp_adapter.c:319
A14 : 0x00000001 A15 : 0x00000001 SAR : 0x00000000 EXCCAUSE: 0x00000014
EXCVADDR: 0xfd5dfdfc LBEG : 0x400029ac LEND : 0x400029cb LCOUNT : 0x00000000
--- 0x400029ac: __divdf3 in ROM
--- 0x400029cb: __divdf3 in ROM
Backtrace: 0x7d5dfdfb:0x3ffb1fb0 0x4008b00f:0x3ffb1fd0 0x4008ad55:0x3ffb1ff0 0x4008357a:0x3ffb2000 0x40002716:0x3ffc3d40 0x40149467:0x3ffc3d50 0x40148e45:0x3ffc3db0 0x400d8734:0x3ffc3de0 0x400d877b:0x3ffcbb00 0x4015dfeb:0x3ffcbb20 0x4008a879:0x3ffcbb50
--- 0x4008b00f: xPortSysTickHandler at /home/gaston/esp/v5.4.1/esp-idf/components/freertos/port_systick.c:199
--- 0x4008ad55: _frxt_timer_int at /home/gaston/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:344
--- 0x4008357a: _xt_lowint1 at /home/gaston/esp/v5.4.1/esp-idf/components/xtensa/xtensa_vectors.S:1240
--- 0x40002716: __subdf3 in ROM
--- 0x40149467: __ieee754_rem_pio2 at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libm/math/e_rem_pio2.c:158
--- 0x40148e45: cos at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libm/math/s_cos.c:71
--- 0x400d8734: construct_wav at /home/gaston/esp32_projects/Mems/main/main.c:197
--- 0x400d877b: app_main at /home/gaston/esp32_projects/Mems/main/main.c:209
--- 0x4015dfeb: main_task at /home/gaston/esp/v5.4.1/esp-idf/components/freertos/app_startup.c:208
--- 0x4008a879: vPortTaskWrapper at /home/gaston/esp/v5.4.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:139
ELF file SHA256: 9de20521b
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (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:0x3fff0030,len:6276
load:0x40078000,len:15748
load:0x40080400,len:4
--- 0x40080400: _init at ??:?
ho 8 tail 4 room 4
load:0x40080404,len:3860
entry 0x4008063c
what this line means:
Code: Select all
--- 0x40148e45: cos at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libm/math/s_cos.c:71
could be some problems with the lib using COS function?
Could be that double operation consume resources and the Core0 is halted? If this is the case, how to create a tone of 2sec duration in the esp32?
Regards
Gastón