is this the heap not enough for cpu0 and how can I set it higher

trustmiao
Posts: 43
Joined: Mon Aug 06, 2018 5:16 am

is this the heap not enough for cpu0 and how can I set it higher

Postby trustmiao » Mon May 11, 2020 9:39 am

it was a working program, but we recently need to add ble function to it, once we init ble, it crashed with prompt:

Code: Select all

0x4008116c: call_start_cpu1 at G:/esp_vsc/esp-idf/components/esp32/cpu_start.c:269

I (495) cpu_start: App cpu up.
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400dc1ba  PS      : 0x00060930  A0      : 0x8010c93c  A1      : 0x3ffe3470
0x400dc1ba: __assert_func at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c:59

A2      : 0x3f407e50  A3      : 0x0000005b  A4      : 0x3f407f6c  A5      : 0x3f407e8c
A6      : 0x3ffe3528  A7      : 0x3ffe3500  A8      : 0x800dc1ba  A9      : 0x3ffe3450
A10     : 0x00000000  A11     : 0x3ffe3508  A12     : 0x00000000  A13     : 0x00000001  
A14     : 0x3ffe34d8  A15     : 0x3ffe34d0  SAR     : 0x00000005  EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000000c  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0x00000000

ELF file SHA256: c519fe7fae934cd85a239e83b2de3d320b74a9083c8091cf5002878a948c9ce6

Backtrace: 0x400dc1ba:0x3ffe3470 0x4010c939:0x3ffe34a0 0x4010c9c9:0x3ffe34d0 0x400dbb2a:0x3ffe3820 0x40081371:0x3ffe3bf0 0x400795c3:0x3ffe3c30 0x40079675:0x3ffe3c60 0x40079693:0x3ffe3ca0 0x40079979:0x3ffe3cc0 0x400807aa:0x3ffe3df0 0x40007c31:0x3ffe3eb0 0x4000073d:0x3ffe3f20
0x400dc1ba: __assert_func at /Users/ivan/e/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c:59

0x4010c939: s_prepare_reserved_regions at G:/esp_vsc/esp-idf/components/soc/src/memory_layout_utils.c:91 (discriminator 1)

0x4010c9c9: soc_get_available_memory_regions at G:/esp_vsc/esp-idf/components/soc/src/memory_layout_utils.c:114

0x400dbb2a: heap_caps_init at G:/esp_vsc/esp-idf/components/heap/heap_caps_init.c:67

0x40081371: call_start_cpu0 at G:/esp_vsc/esp-idf/components/esp32/cpu_start.c:254
is it suggesting cpu0 is capped in heap, how can we get around this? thanks

Who is online

Users browsing this forum: Bing [Bot] and 100 guests