Skip to content

Commit

Permalink
Work around BLE initialization failure on esp32s3
Browse files Browse the repository at this point in the history
  • Loading branch information
mskvortsov committed May 25, 2024
1 parent c5e0280 commit 555de5c
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions arch/esp32/esp32s3.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ extends = esp32_base

monitor_speed = 115200

# Work around BLE initialization failure
build_flags =
${esp32_base.build_flags}
-DCONFIG_BT_NIMBLE_PINNED_TO_CORE=1
2 changes: 1 addition & 1 deletion variants/bpi_picow_esp32_s3/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ lib_deps =
${esp32_base.lib_deps}
caveman99/ESP32 Codec2@^1.0.1
build_flags =
${esp32_base.build_flags} -D PRIVATE_HW -I variants/bpi_picow_esp32_s3
${esp32s3_base.build_flags} -D PRIVATE_HW -I variants/bpi_picow_esp32_s3
2 changes: 1 addition & 1 deletion variants/esp32-s3-pico/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ board_upload.require_upload_port = yes

;upload_port = /dev/ttyACM0

build_flags = ${esp32_base.build_flags}
build_flags = ${esp32s3_base.build_flags}
-DESP32_S3_PICO
;-DPRIVATE_HW
-Ivariants/esp32-s3-pico
Expand Down
2 changes: 1 addition & 1 deletion variants/my_esp32s3_diy_eink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lib_deps =
build_unflags = -DARDUINO_USB_MODE=1
build_flags =
;${esp32_base.build_flags} -D MY_ESP32S3_DIY -I variants/my_esp32s3_diy_eink
${esp32_base.build_flags} -D PRIVATE_HW -I variants/my_esp32s3_diy_eink
${esp32s3_base.build_flags} -D PRIVATE_HW -I variants/my_esp32s3_diy_eink
-Dmy
-DEINK_DISPLAY_MODEL=GxEPD2_290_T5D
-DEINK_WIDTH=296
Expand Down
2 changes: 1 addition & 1 deletion variants/my_esp32s3_diy_oled/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lib_deps =
build_unflags = -DARDUINO_USB_MODE=1
build_flags =
;${esp32_base.build_flags} -D MY_ESP32S3_DIY -I variants/my_esp32s3_diy_oled
${esp32_base.build_flags} -D PRIVATE_HW -I variants/my_esp32s3_diy_oled
${esp32s3_base.build_flags} -D PRIVATE_HW -I variants/my_esp32s3_diy_oled
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DARDUINO_USB_MODE=0
2 changes: 1 addition & 1 deletion variants/t-deck/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ board_check = true
upload_protocol = esptool
#upload_port = COM29

build_flags = ${esp32_base.build_flags}
build_flags = ${esp32s3_base.build_flags}
-DT_DECK
-DBOARD_HAS_PSRAM
-DMAX_THREADS=40
Expand Down
2 changes: 1 addition & 1 deletion variants/t-watch-s3/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ board = t-watch-s3
board_check = true
upload_protocol = esptool

build_flags = ${esp32_base.build_flags}
build_flags = ${esp32s3_base.build_flags}
-DT_WATCH_S3
-Ivariants/t-watch-s3
-DPCF8563_RTC=0x51
Expand Down
2 changes: 1 addition & 1 deletion variants/tlora_t3s3_v1/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ board_check = true
upload_protocol = esp-builtin

build_flags =
${esp32_base.build_flags} -D TLORA_T3S3_V1 -I variants/tlora_t3s3_v1
${esp32s3_base.build_flags} -D TLORA_T3S3_V1 -I variants/tlora_t3s3_v1
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
2 changes: 1 addition & 1 deletion variants/unphone/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build_unflags =
${esp32s3_base.build_unflags}
-D ARDUINO_USB_MODE

build_flags = ${esp32_base.build_flags}
build_flags = ${esp32s3_base.build_flags}
;-D BOARD_HAS_PSRAM // what's up with this - doesn't seem to be recognised at boot
-D UNPHONE
-I variants/unphone
Expand Down

0 comments on commit 555de5c

Please sign in to comment.