8000 esp32/esp32c2: Fix heap size is too small to enable Bluetooth. · micropython/micropython@2f8d960 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f8d960

Browse files
committed
esp32/esp32c2: Fix heap size is too small to enable Bluetooth.
Signed-off-by: TianShuangKe <qinyun575@gmail.com>
1 parent 8eec038 commit 2f8d960

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ports/esp32/boards/ESP32_GENERIC_C2/mpconfigboard.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#define MICROPY_HW_BOARD_NAME "ESP32C2 module"
44
#define MICROPY_HW_MCU_NAME "ESP32C2"
55

6-
#define MICROPY_PY_BLUETOOTH (0)
76
#define MICROPY_HW_ENABLE_SDCARD (0)
87
#define MICROPY_PY_MACHINE_I2S (0)
98

ports/esp32/boards/sdkconfig.ble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ CONFIG_BT_NIMBLE_PINNED_TO_CORE=1
1717

1818
# Increase NimBLE task stack size from the default, because Python code
1919
# (BLE IRQ handlers) will most likely run on this task.
20-
CONFIG_BT_NIMBLE_TASK_STACK_SIZE=6144
20+
CONFIG_BT_NIMBLE_TASK_STACK_SIZE=4096

ports/esp32/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#define MICROPY_GC_INITIAL_HEAP_SIZE (56 * 1024)
3535
#elif CONFIG_IDF_TARGET_ESP32S2 && !CONFIG_SPIRAM
3636
#define MICROPY_GC_INITIAL_HEAP_SIZE (36 * 1024)
37+
#elif CONFIG_IDF_TARGET_ESP32C2
38+
#define MICROPY_GC_INITIAL_HEAP_SIZE (40 * 1024)
3739
#else
3840
#define MICROPY_GC_INITIAL_HEAP_SIZE (64 * 1024)
3941
#endif

0 commit comments

Comments
 (0)
0