Page 1 of 1

Core panic when using FreeRTOS Cellular library

Posted: Fri Jul 07, 2023 9:17 am
by cedriciox
Hi

I am using an ESP32-S3-WROOM-1-N4 on a custom PCB with a Quectel BG770 modem connected via UART.
To handle communication with the modem, I have installed the FreeRTOS cellular library, which mostly works perfectly fine.

Data is sent over CoAP to Mainflux using the AT-cmds for socket-handling.
Now comes the weird part:
When sending small amounts of data (~400bytes) everything works as expected.
Now I try to send ~700bytes of data and everything crashes.
I have stepped through the code with gdb and found the exact point where it crashes:

Code: Select all

cellular_common.c:447: (PlatformMutex_Lock( &pContext->libStatusMutex );
Taking the mutex crashes everything. But as I said, only when trying to sending larger amounts of data.

Does anyone have the same issue or any idea why this is happening ?

Code: Select all

Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x40383af0  PS      : 0x00060730  A0      : 0x803821df  A1      : 0x3fc9fda0  
A2      : 0x227b2ca9  A3      : 0x3fca0d08  A4      : 0x00060720  A5      : 0x000003f4  
A6      : 0x00000000  A7      : 0x00001633  A8      : 0x00000000  A9      : 0x3fc9fd90  
A10     : 0x227b2cb1  A11     : 0x00000018  A12     : 0x00060720  A13     : 0x3fc9c3a8  
A14     : 0x3fca95c4  A15     : 0x00002710  SAR     : 0x00000004  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x400556d5  LEND    : 0x400556e5  LCOUNT  : 0xffffffff  


Backtrace: 0x40383aed:0x3fc9fda0 0x403821dc:0x3fc9fdc0 0x4038141a:0x3fc9fde0 0x420190db:0x3fc9fe20 0x42019255:0x3fc9fe40 0x42016e88:0x3fc9fe60 0x42014459:0x3fc9fe90 0x4201236f:0x3fc9ff40 0x4200ded0:0x3fc9ff90 0x4201041d:0x3fc9ffb0 0x4200eb29:0x3fca0020 0x4200f2e9:0x3fca0060 0x4200f9a6:0x3fca00a0 0x4200e08c:0x3fca00c0 0x4200cbba:0x3fca0110 0x4200cddc:0x3fca0af0 0x4200d27e:0x3fca0b10 0x4200b6a2:0x3fca0b30 0x42048142:0x3fca0b50 0x40382bde:0x3fca0b80