Core 1 panic'ed (LoadProhibited) SPI and Task conflict
Posted: Fri Dec 31, 2021 6:33 pm
When the task is not initialized and I try to use the SPI bus, it works perfectly but when the task is initialized I get this error:
Code: Select all
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d1023 PS : 0x00060a30 A0 : 0x800d1c8f A1 : 0x3ffb1f10
A2 : 0x0000296b A3 : 0x000000bf A4 : 0x00000040 A5 : 0x3ffb1e50
A6 : 0x00000000 A7 : 0x3ffb0060 A8 : 0x800819ba A9 : 0x3ffb1f10
A10 : 0x017f9ddb A11 : 0x00000001 A12 : 0x00000000 A13 : 0x00000001
A14 : 0x00060a20 A15 : 0x00000000 SAR : 0x00000000 EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000296d LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
ELF file SHA256: 0000000000000000
Backtrace: 0x400d1023:0x3ffb1f10 0x400d1c8c:0x3ffb1f30 0x400d2385:0x3ffb1f70 0x400d5b5d:0x3ffb1fb0 0x4008a03a:0x3ffb1fd0
PC: 0x400d1023: ThreeWire::beginTransmission(unsigned char) at C:\Users\CARLOS\Documents\Arduino\libraries\Rtc_by_Makuna\src/ThreeWire.h line 25
EXCVADDR: 0x0000296d
Decoding stack results
0x400d1023: ThreeWire::beginTransmission(unsigned char) at C:\Users\CARLOS\Documents\Arduino\libraries\Rtc_by_Makuna\src/ThreeWire.h line 25
0x400d1c8c: RtcDS1302 ::GetDateTime() at C:\Users\CARLOS\Documents\Arduino\libraries\Rtc_by_Makuna\src/RtcDS1302.h line 173
0x400d2385: loop() at C:\Users\CARLOS\Desktop\Pulso-oximetro\Pulso_Oximetro/Pulso_Oximetro.ino line 406
0x400d5b5d: loopTask(void*) at C:\Users\CARLOS\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\cores\esp32\main.cpp line 23
0x4008a03a: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143