Open Se1616 opened 3 years ago
I am using an M5Stack 2020 Atom Matrix ESP32 PICO This is my first project. I built a remote control for the hub. This is already running. I noticed 2 problems in the function init (). Problem 1: Sketch 1:
void setup() { Serial.begin(9600);
IrReceiver.begin(22, true); myHub.init(); }
void loop() {
}
This leads to the following crash:
V⸮⸮1 l+⸮⸮0⸮f⸮⸮⸮⸮,lYK⸮j 녑:0x&⸮⸮⸮⸮⸮leK⸮044C!⸮+⸮⸮0x⸮78⸮⸮,⸮⸮⸮h<NJ"ҋ⸮" ⸮⸮95 ⸮⸮⸮)⸮Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed) Core 1 register dump: PC : 0x400d17c8 PS : 0x00060034 A0 : 0x80081458 A1 : 0x3ffbe7b0 A2 : 0x00000064 A3 : 0x20000000 A4 : 0x00000400 A5 : 0x3ffc5d10 A6 : 0x00000000 A7 : 0x3ffc5d4c A8 : 0x80081017 A9 : 0x00000000 A10 : 0x00000001 A11 : 0x00000000 A12 : 0x00000000 A13 : 0x00000000 A14 : 0x00000000 A15 : 0x00000005 SAR : 0x00000016 EXCCAUSE: 0x00000007 EXCVADDR: 0x00000000 LBEG : 0x4000164d LEND : 0x40001667 LCOUNT : 0xfffffffc Core 1 was running in ISR context: EPC1 : 0x400931c6 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x400d17c8
Backtrace: 0x400d17c8:0x3ffbe7b0 0x40081455:0x3ffbe7d0 0x400848dd:0x3ffbe7f0 0x400931c3:0x3ffc5d70 0x400939c1:0x3ffc5d90 0x40087504:0x3ffc5db0 0x400f1d0d:0x3ffc5e20 0x400f05dd:0x⸮
The following sketch works: void setup() { Serial.begin(9600); myHub.init(); IrReceiver.begin(22, true);
Problem 2: The following sketch leads to a crash after about 9300 runs:
Lpf2Hub myHub; int i;
void setup() { Serial.begin(9600); myHub.init(); i = 0; }
if (!myHub.isConnected() && !myHub.isConnecting()) { myHub.init(); }
Serial.println (i++);
} // End of loop
9321 9322 abort() was called at PC 0x40108b5f on core 1
Backtrace: 0x40090a94:0x3ffc5e40 0x40090cc5:0x3ffc5e60 0x40108b5f:0x3ffc5e80 0x40108ba6:0x3ffc5ea0 0x401086ed:0x3ffc5ec0 0x40108440:0x3ffc5ee0 0x401088a5:0x3ffc5f00 0x400d1983:0x3ffc5f20 0x400d19d9:0x3ffc5f50 0x400d1a31:0x3ffc5f70 0x400d1758:0x3ffc5fd0 0x400e395d:0x3ffc5ff0 0x4008d4e5:0x3ffc6010
Rebooting... B⸮⸮8⸮"⸮⸮⸮JQ⸮⸮Z⸮⸮Sa⸮@⸮S!⸮⸮0 1 2 3
I am using an M5Stack 2020 Atom Matrix ESP32 PICO This is my first project. I built a remote control for the hub. This is already running. I noticed 2 problems in the function init (). Problem 1: Sketch 1:
void setup() {
Serial.begin(9600);
IrReceiver.begin(22, true); myHub.init();
}
void loop() {
}
This leads to the following crash:
V⸮⸮1 l+⸮⸮0⸮f⸮⸮⸮⸮,lYK⸮j 녑:0x&⸮⸮⸮⸮⸮leK⸮044C!⸮+⸮⸮0x⸮78⸮⸮,⸮⸮⸮h<NJ"ҋ⸮" ⸮⸮95 ⸮⸮⸮)⸮Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed) Core 1 register dump: PC : 0x400d17c8 PS : 0x00060034 A0 : 0x80081458 A1 : 0x3ffbe7b0
A2 : 0x00000064 A3 : 0x20000000 A4 : 0x00000400 A5 : 0x3ffc5d10
A6 : 0x00000000 A7 : 0x3ffc5d4c A8 : 0x80081017 A9 : 0x00000000
A10 : 0x00000001 A11 : 0x00000000 A12 : 0x00000000 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000005 SAR : 0x00000016 EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000 LBEG : 0x4000164d LEND : 0x40001667 LCOUNT : 0xfffffffc
Core 1 was running in ISR context: EPC1 : 0x400931c6 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x400d17c8
Backtrace: 0x400d17c8:0x3ffbe7b0 0x40081455:0x3ffbe7d0 0x400848dd:0x3ffbe7f0 0x400931c3:0x3ffc5d70 0x400939c1:0x3ffc5d90 0x40087504:0x3ffc5db0 0x400f1d0d:0x3ffc5e20 0x400f05dd:0x⸮
The following sketch works: void setup() {
Serial.begin(9600); myHub.init(); IrReceiver.begin(22, true);
}
Problem 2: The following sketch leads to a crash after about 9300 runs:
include
Lpf2Hub myHub; int i;
void setup() { Serial.begin(9600); myHub.init();
i = 0; }
void loop() {
if (!myHub.isConnected() && !myHub.isConnecting()) { myHub.init(); }
Serial.println (i++);
} // End of loop
9321 9322 abort() was called at PC 0x40108b5f on core 1
Backtrace: 0x40090a94:0x3ffc5e40 0x40090cc5:0x3ffc5e60 0x40108b5f:0x3ffc5e80 0x40108ba6:0x3ffc5ea0 0x401086ed:0x3ffc5ec0 0x40108440:0x3ffc5ee0 0x401088a5:0x3ffc5f00 0x400d1983:0x3ffc5f20 0x400d19d9:0x3ffc5f50 0x400d1a31:0x3ffc5f70 0x400d1758:0x3ffc5fd0 0x400e395d:0x3ffc5ff0 0x4008d4e5:0x3ffc6010
Rebooting... B⸮⸮8⸮"⸮⸮⸮JQ⸮⸮Z⸮⸮Sa⸮@⸮S!⸮⸮0 1 2 3