Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp-idf-config/sdkconfig.defaults: Fix TLS access to api.github.com; remove BLE from 4MB ESP32-S3 #8924

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/adafruit_qtpy_esp32c3/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0

# Not enough pins.
CIRCUITPY_PARALLELDISPLAYBUS = 0
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ CIRCUITPY_ESP_FLASH_SIZE = 2MB
CIRCUITPY_DUALBANK = 0

CIRCUITPY_ESP_USB_SERIAL_JTAG = 0

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/ai_thinker_esp32-c3s/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 0

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/beetle-esp32-c3/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ CIRCUITPY_ESP_FLASH_FREQ=80m
CIRCUITPY_ESP_FLASH_SIZE=4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0
3 changes: 1 addition & 2 deletions ports/espressif/boards/deneyap_kart_1a_v2/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ CIRCUITPY_ESP_PSRAM_FREQ = 80m

CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_BITMAPFILTER = 0
CIRCUITPY_BLEIO = 0
CIRCUITPY_CODEOP=0
CIRCUITPY_CODEOP = 0
CIRCUITPY_PARALLELDISPLAYBUS = 0

OPTIMIZATION_FLAGS = -Os
2 changes: 0 additions & 2 deletions ports/espressif/boards/deneyap_kart_g/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 0

CIRCUITPY_BLEIO = 0
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ IDF_TARGET = esp32c6
CIRCUITPY_ESP_FLASH_MODE = qio
CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/lilygo_ttgo_t-01c3/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 0

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/lilygo_ttgo_t-oi-plus/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 0

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/lolin_c3_mini/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ=80m
CIRCUITPY_ESP_FLASH_SIZE=4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/lolin_c3_pico/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ CIRCUITPY_ESP_FLASH_SIZE=4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0

# Include these Python libraries in firmware.
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
3 changes: 1 addition & 2 deletions ports/espressif/boards/lolin_s3_mini/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ CIRCUITPY_ESP_PSRAM_FREQ = 80m
OPTIMIZATION_FLAGS = -Os
CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_BITMAPFILTER = 0
CIRCUITPY_BLEIO = 0
CIRCUITPY_CODEOP=0
CIRCUITPY_CODEOP = 0
CIRCUITPY_PARALLELDISPLAYBUS = 0

# Include these Python libraries in firmware.
Expand Down
2 changes: 0 additions & 2 deletions ports/espressif/boards/luatos_core_esp32c3/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ=80m
CIRCUITPY_ESP_FLASH_SIZE=4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ=80m
CIRCUITPY_ESP_FLASH_SIZE=4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 0

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/m5stack_stamp_c3/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ=80m
CIRCUITPY_ESP_FLASH_SIZE=4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 0

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/magiclick_s3_n4r2/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ CIRCUITPY_ESP_PSRAM_MODE = qio
CIRCUITPY_ESP_PSRAM_FREQ = 80m
CIRCUITPY_ESP_PSRAM_SIZE = 2MB

CIRCUITPY_BLEIO = 0
CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_GIFIO = 1
2 changes: 0 additions & 2 deletions ports/espressif/boards/microdev_micro_c3/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0
2 changes: 0 additions & 2 deletions ports/espressif/boards/seeed_xiao_esp32c3/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_ESP_USB_SERIAL_JTAG = 1

CIRCUITPY_BLEIO = 0
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ CIRCUITPY_ESP_PSRAM_FREQ = 80m
OPTIMIZATION_FLAGS = -Os
CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_BITMAPFILTER = 0
CIRCUITPY_BLEIO = 0
CIRCUITPY_CODEOP=0
CIRCUITPY_CODEOP = 0
CIRCUITPY_PARALLELDISPLAYBUS = 0

# Include these Python libraries in firmware.
Expand Down
3 changes: 0 additions & 3 deletions ports/espressif/boards/weact_esp32c6_n4/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ IDF_TARGET = esp32c6
CIRCUITPY_ESP_FLASH_MODE = qio
CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 4MB

CIRCUITPY_BLEIO = 0
CIRCUITPY_ESPCAMERA = 0
3 changes: 0 additions & 3 deletions ports/espressif/boards/weact_esp32c6_n8/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ IDF_TARGET = esp32c6
CIRCUITPY_ESP_FLASH_MODE = qio
CIRCUITPY_ESP_FLASH_FREQ = 80m
CIRCUITPY_ESP_FLASH_SIZE = 8MB

CIRCUITPY_BLEIO = 0
CIRCUITPY_ESPCAMERA = 0
2 changes: 1 addition & 1 deletion ports/espressif/esp-idf-config/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
# CONFIG_MBEDTLS_ECP_DP_BP256R1_ENABLED is not set
# CONFIG_MBEDTLS_ECP_DP_BP384R1_ENABLED is not set
# CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED is not set
# CONFIG_MBEDTLS_ECP_NIST_OPTIM is not set
CONFIG_MBEDTLS_ECP_NIST_OPTIM=y
# CONFIG_MBEDTLS_ECP_FIXED_POINT_OPTIM is not set
# end of mbedTLS

Expand Down
17 changes: 13 additions & 4 deletions ports/espressif/mpconfigport.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ CIRCUITPY_AUDIOBUSIO ?= 1
CIRCUITPY_AUDIOBUSIO_PDMIN ?= 0
CIRCUITPY_AUDIOIO ?= 0
CIRCUITPY_AUDIOMP3 ?= 0
CIRCUITPY_BLEIO ?= 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_CANIO ?= 1
CIRCUITPY_COUNTIO ?= 1
Expand Down Expand Up @@ -56,6 +55,7 @@ else ifeq ($(IDF_TARGET),esp32c3)
# Modules
CIRCUITPY_ALARM = 0
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_BLEIO ?= 0
CIRCUITPY_COUNTIO = 0
CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_ESPULP = 0
Expand All @@ -73,6 +73,7 @@ else ifeq ($(IDF_TARGET),esp32c6)
# Modules
CIRCUITPY_ALARM = 0
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_BLEIO ?= 0
CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_ESPULP = 0
CIRCUITPY_MEMORYMAP = 0
Expand All @@ -91,6 +92,7 @@ CIRCUITPY_ALARM = 0
# https://github.com/espressif/esp-idf/issues/11038
CIRCUITPY_ANALOGIO = 0
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_BLEIO ?= 1
CIRCUITPY_ESPCAMERA = 0
CIRCUITPY_ESPULP = 0
CIRCUITPY_MEMORYMAP = 0
Expand All @@ -106,6 +108,7 @@ CIRCUITPY_WIFI = 0

else ifeq ($(IDF_TARGET),esp32s2)
# Modules
# No BLE in hw
CIRCUITPY_BLEIO = 0
CIRCUITPY_RGBMATRIX_USES_SUPERVISOR_ALLOCATION = 0

Expand All @@ -115,9 +118,15 @@ else ifeq ($(IDF_TARGET),esp32s3)
# Modules
CIRCUITPY_BITMAPFILTER ?= $(CIRCUITPY_ESPCAMERA)
CIRCUITPY_RGBMATRIX_USES_SUPERVISOR_ALLOCATION = 0

CIRCUITPY_ESP_USB_SERIAL_JTAG ?= 0

# No room for _bleio on boards with 4MB flash
ifeq ($(CIRCUITPY_ESP_FLASH_SIZE),4MB)
CIRCUITPY_BLEIO ?= 0
else
CIRCUITPY_BLEIO ?= 1
endif

endif

# No room for dualbank on boards with 2MB flash
Expand All @@ -127,8 +136,8 @@ endif

# Modules dependent on other modules
CIRCUITPY_ESPNOW ?= $(CIRCUITPY_WIFI)
CIRCUITPY_GIFIO ?= $(CIRCUITPY_ESPCAMERA)
CIRCUITPY_JPEGIO ?= $(CIRCUITPY_ESPCAMERA)
CIRCUITPY_GIFIO ?= $(CIRCUITPY_DISPLAYIO)
CIRCUITPY_JPEGIO ?= $(CIRCUITPY_DISPLAYIO)
CIRCUITPY_QRIO ?= $(CIRCUITPY_ESPCAMERA)

# Features dependent on other features
Expand Down
Loading