StoreProhibited triggered by FreeRTOS
Re: StoreProhibited triggered by FreeRTOS
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
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.
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.
Re: StoreProhibited triggered by FreeRTOS
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
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
Re: StoreProhibited triggered by FreeRTOS
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.
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.
Re: StoreProhibited triggered by FreeRTOS
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.
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
