Skip to content

Commit 3c8e7f8

Browse files
committed
Workaround for an issue with esp-idf 5.5.3
1 parent dee2d9f commit 3c8e7f8

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • ports/espressif/boards/waveshare_esp32_s3_amoled_241

ports/espressif/boards/waveshare_esp32_s3_amoled_241/sdkconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,18 @@ CONFIG_LWIP_LOCAL_HOSTNAME="waveshare-esp32-s3-amoled"
2929
# Disable USB-Serial/JTAG console - CircuitPython uses TinyUSB (USB OTG) for REPL
3030
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=n
3131

32+
# === TEMPORARY DEBUG: route console to UART0 (TX=GPIO43, RX=GPIO44) ===
33+
# CONFIG_ESP_CONSOLE_UART_DEFAULT=y
34+
# CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y
35+
# CONFIG_LOG_DEFAULT_LEVEL_INFO=y
36+
# CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
37+
# === END TEMPORARY DEBUG ===
38+
39+
# Workaround: NimBLE BLE_STATIC_TO_DYNAMIC=y (default in IDF 5.5.3) causes
40+
# ble_gap_vars to be a dynamically allocated pointer (NULL before ble_gap_init).
41+
# CircuitPython calls ble_gap_adv_active() before NimBLE init → NULL deref → bootloop.
42+
# Reverting to static allocation avoids the crash.
43+
CONFIG_BT_NIMBLE_STATIC_TO_DYNAMIC=n
44+
3245
# Enable .app_desc structure
3346
CONFIG_APP_RETRIEVE_LEN_ELF_SHA=16

0 commit comments

Comments
 (0)