diff options
| author | Angus Gratton <angus@redyak.com.au> | 2024-08-15 16:00:08 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-08-16 13:55:32 +1000 |
| commit | 6565b3cb34954737428f98f0306b7e3cad146482 (patch) | |
| tree | 2a8b3e0b412e4561583c1789ce99a3ce4fb16993 /py/objstringio.h | |
| parent | 0b75e180a3b9fe72681fb942873102cdf2f4cae1 (diff) | |
esp32: Fix Python cstack size for bluetooth irq callbacks.
This value should have been adjusted when the new cstack API was adopted in
e3955f421d1, as otherwise the stack limit is too small especially on
ESP32-C3 where the stack limit was 6144 - 2048 - 2048.
Some extra margin is needed for bluetooth irq because invoke_irq_handler()
isn't a top-level task function, NimBLE calls through multiple layers
first. Measuring this overhead on IDF V5.2.2 (by putting an abort() in
invoke_irq_handler() and then measuring the stack size) yielded 672 bytes
on ESP32-S3 and 612 bytes on ESP32-C3, similar to the size reported in
cd66aa05cf.
Sticking with 1024 bytes for added safety margin. This means on Xtensa the
total margin for the BLE task stays the same (2048 bytes) as before
switching to cstack.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'py/objstringio.h')
0 files changed, 0 insertions, 0 deletions
