diff options
author | Damien George <damien@micropython.org> | 2024-02-15 23:03:29 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-02-16 10:51:11 +1100 |
commit | ee3c9ccb541732ae57de490dd914225ddce8f8a2 (patch) | |
tree | 8408da03e91c51bd46f436a97b5c066d5b878bc3 /py/modmicropython.c | |
parent | e72d03855efe4917c555a083c0fdd63819ca890f (diff) |
esp32: Increase NimBLE task stack size and overflow detection headroom.
The Python BLE IRQ handler will most likely run on the NimBLE task, so its
C stack must be large enough to accommodate reasonably complicated Python
code (eg a few call depths). So increase this stack size.
Also increase the headroom from 1024 to 2048 bytes. This is needed because
(1) the esp32 architecture uses a fair amount of stack in general; and (2)
by the time execution gets to setting the Python stack top via
`mp_stack_set_top()` in this interlock code, about 600 bytes of stack are
already used, which reduces the amount available for Python.
Fixes issue #12349.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/modmicropython.c')
0 files changed, 0 insertions, 0 deletions