"Error of type LoadProhibited occurred on core 0." During Delay
Posted: Tue Jun 27, 2017 10:58 pm
Hello!
I am creating a library to control an SPI-based LCD. However, only a few lines into the setup, A HUGE console error is thrown:
Using tonnes and tonnes of debug prints, I have found the line where the error occurs:
What could be going on here? I have read elsewhere that this error is a panic thrown by the software error catcher when an invalid pointer is dereferenced. But, there are no pointers here!
Any suggestions? (I have tried to run the ESP-32 Error decoder provided by me-no-dev, but it crashes saying "corrupt jar file...")
EDIT: Upon removing that delay statement, everything works. All other delay statements work fine...
EDIT2: Nope, all delay statements are broken
EDIT3: Was able to fix it by using delayMicroseconds instead. But, still, what?!
I am creating a library to control an SPI-based LCD. However, only a few lines into the setup, A HUGE console error is thrown:
Code: Select all
Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled.
Register dump:
PC : 0x4008594b PS : 0x00060530 A0 : 0x80084a2d A1 : 0x3ffe3b70
A2 : 0x00000008 A3 : 0x00000000 A4 : 0x0000000a A5 : 0x00000000
A6 : 0x00000000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffe3b50
A10 : 0x3ffc1380 A11 : 0x3f400c6f A12 : 0x00000002 A13 : 0x0000ff00
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x0000001f EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000018 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff
Backtrace: 0x4008594b:0x3ffe3b70 0x40084a2d:0x3ffe3b90 0x400d0898:0x3ffe3bb0 0x400d06d2:0x3ffe3bd0 0x400d0644:0x3ffe3bf0 0x400d557e:0x3ffe3c20 0x400810f8:0x3ffe3c40 0x400812d8:0x3ffe3c70 0x4007867d:0x3ffe3cb0 0x4007879c:0x3ffe3ce0 0x40078a68:0x3ffe3d50 0x400800f9:0x3ffe3e70 0x40007c34:0x3ffe3eb0 0x40000740:0x3ffe3f20
CPU halted.
Code: Select all
delay(500);
Any suggestions? (I have tried to run the ESP-32 Error decoder provided by me-no-dev, but it crashes saying "corrupt jar file...")
EDIT: Upon removing that delay statement, everything works. All other delay statements work fine...
EDIT2: Nope, all delay statements are broken
EDIT3: Was able to fix it by using delayMicroseconds instead. But, still, what?!