B4R Question Problems with SELECT CASE

Gerardo Tenreiro

Active Member
Licensed User
Hello Forum,
I've been working on an ESP32 application for months, the application has a lot of code, so I was generating the different modules separately and testing them.

Apparently all the modules work correctly separately but now when joining them in an application I see that every certain random time, 10 or 15 minutes, the ESP32 restarts with this error message:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

I start to eliminate modules and each time the problem appears in another area of the program without meaning, but it is always where there are SELECT CASE instructions, for example in this program block:


This piece of code has several SELECT CASE chained inside each other, but the error is not always generated in this module, it is a continuous module but I shorten it.

If I cancel this piece of code the error continues in other code that contains the SELECT CASE statement. it's a random thing.

I can't find an explanation for the malfunction of the code.

Someone is suffering the same problem.

Thank you so much
 

Gerardo Tenreiro

Active Member
Licensed User
At the moment I am in this block that gives an error and I don't know why


It is the reading of some TCA9545 expanders

Do you see something strange in it?
I don't see anything that could generate the error, but it is generated approximately every 10 minutes.


Thank you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…