pythings / Drivers

Some drivers for MicroPython
Apache License 2.0
63 stars 22 forks source link

[SIM800L] -Core 1 panic'ed (LoadProhibited). Exception was unhandled- while posting medium sized json #7

Open Celeron94 opened 4 years ago

Celeron94 commented 4 years ago

Posting a medium sized JSON (3586 bytes) sometimes produces following error:

DEBUG:SIM800L:Read "b'\r\n'" DEBUG:SIM800L:Detected pre-end DEBUG:SIM800L:Read "b'OK\r\n'" DEBUG:SIM800L:Detected exact end DEBUG:SIM800L:Returning "b''" DEBUG:SIM800L:Http request step #2.5 (dopost) DEBUG:SIM800L:Writing AT command "b'AT+HTTPACTION=1\r\n'" Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x40094d6f PS : 0x00060033 A0 : 0x80092a59 A1 : 0x3ffb1f60 A2 : 0x0000001f A3 : 0x3ffc6d8c A4 : 0x00000001 A5 : 0x00000001 A6 : 0x00060023 A7 : 0x00000000 A8 : 0x00000000 A9 : 0x3ffb1f50 A10 : 0x00000003 A11 : 0x00060023 A12 : 0x00060023 A13 : 0x3ffc6c80 A14 : 0x00000001 A15 : 0x3ffc6d8c SAR : 0x00000018 EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000002f LBEG : 0x4009bac0 LEND : 0x4009baee LCOUNT : 0xffffffff Core 1 was running in ISR context: EPC1 : 0x40094d6f EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40085c33

Backtrace: 0x40094d6f:0x3ffb1f60 0x40092a56:0x3ffb1f80 0x40090a0d:0x3ffb1fa0 0x4018ddd3:0x3ffb1fc0 0x40084e89:0x3ffb2010 0x4000bfed:0x00000000

We are using loboris MicroPython for ESP32 with psRAM support as firmeware.

sarusso commented 4 years ago

Thank you @Celeron94 for reporting this.

May I ask you why you are using this driver for the SIM800 instead of loboris firmware's built-in one?

As a general comment, the problem with fixing bugs on the loboris fork is that it heavily diverged from MicroPython codebase, and the fork is unmaintained since about 2 years. There has been some discussion here: https://forum.micropython.org/viewtopic.php?t=6193