Stack overflow - core panic

falling_stone
Posts: 3
Joined: Thu Feb 23, 2017 1:28 am

Stack overflow - core panic

Postby falling_stone » Sat Feb 25, 2017 11:52 pm

Hi,
I compiled the gatt_server_service_table demo from the IDF and I've got the following response from the console:

E (516) BT: app_main init bluetooth
E (516) BT: Startup BTU
E (516) BT: GATTS_CreateService: handle of service handle1
E (526) BT: osi_mem_dbg_clean full future_free 98 !!
E (526) BT: osi_mem_dbg_clean full GKI_freeb***ERROR*** A stack overflow in task hciH4T has been detected.
abort() was called at PC 0x4008615c
Guru Meditation Error: Core 0 panic'ed (abort)
Backtrace: 0x400826c4:0x3ffd9730 0x4008284d:0x3ffd9750 0x400838ea:0x3ffd9770 0x4008574f:0x3ffd9790 0x40085709:0x124a1bfb
CPU halted.

Can anyone help me how can I make the system run? (I already increased stack size by "make menuconfig" utility, it did not help)
Thank You and Best Regards,
F.S.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Stack overflow - core panic

Postby kolban » Sun Feb 26, 2017 6:07 pm

Howdy,
A new video has been pushed to You Tube which might offer some assistance. See:

https://www.youtube.com/watch?v=9zxU9uAifMI
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Stack overflow - core panic

Postby ESP_Angus » Sun Feb 26, 2017 11:54 pm

Hi falling stone,

This example compiles and runs for me with the current esp-idf master branch version on github (commit 13dfb5568) and the default configuration.

Are there configuration, code or version differences that might be contributing to the error you're seeing?


Angus

falling_stone
Posts: 3
Joined: Thu Feb 23, 2017 1:28 am

Re: Stack overflow - core panic

Postby falling_stone » Tue Feb 28, 2017 12:46 am

Thank You Mr. Kolban for the useful video,
Thank You Angus for contribution, the release is the same as Yous, the problem seemed to be in enabled "Bluedroid memory debug" in menuconfig. Now its OK.

Who is online

Users browsing this forum: No registered users and 74 guests