JackGruber / ESP32-LMIC-DeepSleep-example

31 stars 6 forks source link

Guru Meditation Error: Core 1 panic'ed #6

Open schroepfer opened 2 years ago

schroepfer commented 2 years ago

Hello, after uploading your code, i get this:

Starting DeepSleep test LMIC: 4.1.1.0 Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled. Memory dump at 0x400d5040:

I use Arduino 1.8.19 and the newest LMIC library 4.1.1.0 and a Lolin ESP32 mini

Do you have an idea?

Regards Juergen

JackGruber commented 2 years ago

Sorry no idea, possible wrong pin assignment? Because after the Starting DeepSleep test and the Version output the os_init(); and LMIC_reset(); is executed. Does the board work with the examples from the LMIC lib?

schroepfer commented 2 years ago

I Think, you are right! It works now a little bit. But it cannot sleep! This message is endless.

(PS: i use a DFrobot FireBeetle ESP32-E) _

_11:39:19.940 -> Packet queued 11:39:19.940 -> 3376: EV_JOINING 11:39:20.767 -> 56298: EV_TXSTART 11:39:21.867 -> Cannot sleep TimeCriticalJobs: 0 LMIC.opmode: OP_JOINING OP_TXDATA OP_TXRXPEND OP_NEXTCHNL Runtime: 2 seconds 11:39:23.890 -> Cannot sleep TimeCriticalJobs: 0 LMIC.opmode: OP_JOINING OP_TXDATA OP_TXRXPEND OP_NEXTCHNL Runtime: 4 seconds 11:39:25.887 -> Cannot sleep TimeCriticalJobs: 0 LMIC.opmode: OP_JOINING OP_TXDATA OP_TXRXPEND OP_NEXTCHNL Runtime: 6 seconds 11:39:27.887 -> Cannot sleep TimeCriticalJobs: 0 LMIC.opmode: OP_JOINING OP_TXDATA OP_TXRXPEND OP_NEXTCHNL Runtime: 8 seconds 11:39:29.874 -> Cannot sleep TimeCriticalJobs: 0 LMIC.opmode: OP_JOINING OP_TXDATA OP_TXRXPEND OP_NEXTCHNL Runtime: 10 seconds 11:39:31.868 -> Cannot sleep TimeCriticalJobs: 0 LMIC.opmode: OP_JOINING OP_TXDATA OP_TXRXPEND OPNEXTCHNL Runtime: 12 seconds ..................... _

cyberman54 commented 2 years ago

Seems the board is in joining phase, thus it does as designed no sleep.

schroepfer commented 2 years ago

but why? The original LMIC OTAA example with same TTN credentials works fine. (same board)