8000 ESP32: Stack canary watchpoint triggered (nimble_host) · Issue #926 · h2zero/NimBLE-Arduino · GitHub
[go: up one dir, main page]

Skip to content

ESP32: Stack canary watchpoint triggered (nimble_host) #926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vicatcu opened this issue Mar 31, 2025 · 3 comments
Open

ESP32: Stack canary watchpoint triggered (nimble_host) #926

vicatcu opened this issue Mar 31, 2025 · 3 comments

Comments

@vicatcu
Copy link
vicatcu commented Mar 31, 2025

I'm randomly getting this shortly after writing a characteristic value:

Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception). 
Debug exception reason: Stack canary watchpoint triggered (nimble_host)

My free RAM after Bluetooth initialization is complete and advertising is under way, using esp_get_free_heap_size() indicates there are 102672 bytes free...

At a bit of a loss as to what's happening. Any ideas on diagnostics would be appreciated.

@h2zero
Copy link
Owner
h2zero commented Mar 31, 2025

I suspect you are doing too much in your callbacks. You can either increase the nimble host task stack size or move your code out of the callbacks and just set a flag or trigger a task (preferred option).

@h2zero
Copy link
Owner
h2zero commented Apr 24, 2025

@vicatcu Any progress on this?

@lazd
Copy link
lazd commented May 25, 2025

I suspect you are doing too much in your callbacks. You can either increase the nimble host task stack size or move your code out of the callbacks and just set a flag or trigger a task (preferred option).

I added the following platform.io build flags and it seemed to fix my issue, but I will report back if it happens again:

build_flags =
  -D ARDUINO_NIMBLE
  -D CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE=6144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0