StoreProhibited triggered by FreeRTOS

Sprite
Espressif staff
Espressif staff
Posts: 10612
Joined: Thu Nov 26, 2015 4:08 am

Re: StoreProhibited triggered by FreeRTOS

Postby Sprite » Fri Apr 27, 2018 3:30 am

Hmm, all I can advise you is to use an external, known good 5V power supply, with good cables going to the modules. As you've noticed, the chip can use a pretty large spike of power, and if your power line sags too much, this can lead to weirdnesses that are somewhat repeatable. If any, using a good 5V power supply gives you the nice feeling that that's not an issue.

timredfern
Posts: 31
Joined: Sun Feb 25, 2018 10:59 am

Re: StoreProhibited triggered by FreeRTOS

Postby timredfern » Fri Apr 27, 2018 3:22 pm

To clarify, a brownout isn't the problem here.

To summarise:

The problem is that I see these storeProhibited/ loadProhibited/ wdt timeout errors triggered by FreeRTOS during the device loading phase, unless heap corruption detection is enabled, which somehow protects from this.

I see the errors whether running from USB or 5v power. However I did see a brownout a couple of times and plugging into 5v seems to stop this (only).

Can anyone imagine a mechanism where heap detection protects against a bug?

It seems consistent - although the FreeRTOS errors pop up like whack a mole when I change timing/ sequence of events in device setup, Heap corruption detection seems to stop ALL of them.

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: StoreProhibited triggered by FreeRTOS

Postby fly135 » Fri Apr 27, 2018 4:01 pm

Have you tried running SDK example programs to see if they have the same failures?

The WROVER does have ext spiram. I mentioned that because I ran xtensa-esp32-elf-addr2line on one of your backtrace addresses. Of course your elf is different from mine and that could be a red herring.

Just for ref, the voltage on my computer usb reads 4.6v and was triggering the brown out on my wrover a lot on startup. I just disable the brown out and it worked fine.

John A

Chappy71
Posts: 2
Joined: Wed Sep 24, 2025 5:01 pm

Re: StoreProhibited triggered by FreeRTOS

Postby Chappy71 » Wed Sep 24, 2025 5:09 pm

G'day I had this exact fault. I had code that worked well but when I decided to add an OLED display and put it onto core 0 I had the same crashes as you. I ended up trying to put in a delay(1000); before the for(;;) statement and it worked. Not saying it will work for you but worth a try.
I then added some extra code once it worked, and now I get a "Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled." I was trying to read the encoder and display it on the OLED display.

Chappy71
Posts: 2
Joined: Wed Sep 24, 2025 5:01 pm

Re: StoreProhibited triggered by FreeRTOS

Postby Chappy71 » Fri Sep 26, 2025 9:05 am

I fixed the new error I got about the StoreProhibited triggered by FreeRTOS.
after I got it going I changed some of the code by changing some int variables to float then I was getting a read from prohibited error. I changed it back and added 3 new float variables and the code started working error free.

Who is online

Users browsing this forum: Applebot, Qwantbot and 3 guests