HI guys!
I'm working on a project were my ESP32 connects to the internet via WifI and send some BLE beacons readings to a MQTT server. The library wich i'm using to control the BLE connection is "NimBLE.h". This is relatively a huge project, consuming 58% of ESP32's storage. The problem i get n Serial Monitor is the following:
Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception).
14:24:01.390 -> Debug exception reason: Stack canary watchpoint triggered (conectarEnviarR)
14:24:01.390 -> Core 1 register dump:
14:24:01.390 -> PC : 0x40093b3e PS : 0x00060a36 A0 : 0x40084cd6 A1 : 0x3ffe7940
14:24:01.390 -> A2 : 0x3ffe812c A3 : 0x3ffe7d40 A4 : 0x3ffe7c2c A5 : 0x3f41af20
14:24:01.390 -> A6 : 0x00000002 A7 : 0x3ffe7c64 A8 : 0x2d646900 A9 : 0x7fffffff
14:24:01.390 -> A10 : 0x00000003 A11 : 0x00060a23 A12 : 0x00060a20 A13 : 0x1ab111c9
14:24:01.437 -> A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000008 EXCCAUSE: 0x00000001
14:24:01.437 -> EXCVADDR: 0x00000000 LBEG : 0x4009150d LEND : 0x4009151d LCOUNT : 0xffffffff
14:24:01.437 ->
14:24:01.437 ->
14:24:01.437 -> Backtrace:0x40093b3b:0x3ffe79400x40084cd3:0x3ffe7a30 0x40183ac5:0x3ffe7d40 0x400ee3d2:0x3ffe7e00 0x400e70fa:0x3ffe7e50 0x400dfbe5:0x3ffe7eb0 0x400dfc9d:0x3ffe7ef0 0x400dfefe:0x3ffe7f30 0x400d361e:0x3ffe7f90 0x400d4139:0x3ffe8020
14:24:01.437 ->
14:24:01.437 ->
14:24:01.437 ->
14:24:01.437 ->
14:24:01.437 -> ELF file SHA256: 0000000000000000
14:24:01.437 ->
14:24:01.437 -> Rebooting...
I read in some forums that this crash occurs when the program tries to access an invalid memory address location. In fact NimBLE works with some NULL pointers to manage the connections and somewhat this is the reason why ESP is crashing.... But i'm really stuck here....The code i'm working on is for professional purposes, so i'm not able to share with you guys.... I"d be really thankfull if you could help me