FreeRTOS on Core1: Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.

Staubgeborener
Posts: 20
Joined: Sat Jul 22, 2017 11:59 am

FreeRTOS on Core1: Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.

Postby Staubgeborener » Fri Aug 04, 2017 3:43 pm

I want to run this script here. Basically its initialize the sd card in 1 line mode, enable wifi and create a second task on core 1 to handle the rungbuffer.

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
This issue happens since i implement sdmmc. But i don't know why? I see in the terminal, that sd card is initialized and wifi is enabled. Also i get from core 1 a message, that the task is activated but (see: Core 1 for time intensive operation active!).

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.
Last edited by Staubgeborener on Sat Aug 05, 2017 11:03 am, edited 1 time in total.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: FreeRTOS on Core1: Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.

Postby WiFive » Fri Aug 04, 2017 4:25 pm

You can't vRingbufferReturnItem until you are done using it

Staubgeborener
Posts: 20
Joined: Sat Jul 22, 2017 11:59 am

Re: FreeRTOS on Core1: Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.

Postby Staubgeborener » Fri Aug 04, 2017 4:37 pm

I put vRingbufferReturnItem now in line 175 (update gist), but issue is still the same. I think thats the wrong place...?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: FreeRTOS on Core1: Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.

Postby WiFive » Fri Aug 04, 2017 11:26 pm

There's basically no error checking. Suggest you study up on coding practices.

permal
Posts: 384
Joined: Sun May 14, 2017 5:36 pm

Re: FreeRTOS on Core1: Guru Meditation Error of type LoadProhibited occurred on core 1. Exception was unhandled.

Postby permal » Sat Aug 05, 2017 5:20 pm

LoadProhibited usually means you have an invalid pointer, at least that is what I've learned from my own code.

Who is online

Users browsing this forum: Google [Bot], MicroController and 78 guests