Skip to content

Commit ba6b4d4

Browse files
authored
Fix SDK configs for ESP32 Pico (#2448)
1 parent 108ce2e commit ba6b4d4

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@
602602
],
603603
"hidden": true,
604604
"cacheVariables": {
605-
"SDK_CONFIG_FILE": "sdkconfig.default_pico_ble",
605+
"SDK_CONFIG_FILE": "sdkconfig.default_pico_ble_rev3",
606606
"TARGET_SERIAL_BAUDRATE": "115200",
607607
"NF_BUILD_RTM": "OFF",
608608
"NF_FEATURE_DEBUGGER": "ON",

targets/ESP32/_IDF/sdkconfig.default_pico

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,29 @@ CONFIG_ESP32_REV_MIN_1=y
245245
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
246246
CONFIG_ESP32_SPIRAM_SUPPORT=y
247247

248+
#
249+
# SPI RAM config
250+
#
251+
CONFIG_SPIRAM_BOOT_INIT=y
252+
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
253+
CONFIG_SPIRAM_USE_MEMMAP=n
254+
CONFIG_SPIRAM_USE_CAPS_ALLOC=n
255+
CONFIG_SPIRAM_USE_MALLOC=y
256+
CONFIG_SPIRAM_TYPE_AUTO=y
257+
CONFIG_SPIRAM_TYPE_ESPPSRAM32=n
258+
CONFIG_SPIRAM_TYPE_ESPPSRAM64=n
259+
CONFIG_SPIRAM_SIZE=-1
260+
CONFIG_SPIRAM_SPEED_40M=y
261+
# CONFIG_SPIRAM_MEMTEST is not set
262+
CONFIG_SPIRAM_CACHE_WORKAROUND=y
263+
CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
264+
CONFIG_SPIRAM_BANKSWITCH_RESERVE=8
265+
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
266+
CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
267+
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768
268+
CONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY=n
269+
CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=n
270+
248271
#
249272
# ESP-TLS
250273
#

targets/ESP32/_IDF/sdkconfig.default_pico_ble renamed to targets/ESP32/_IDF/sdkconfig.default_pico_ble_rev3

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ CONFIG_EFUSE_MAX_BLK_LEN=256
244244
#
245245
# ESP32-specific
246246
#
247-
CONFIG_ESP32_REV_MIN_1=y
247+
CONFIG_ESP32_REV_MIN_3=y
248248
CONFIG_ESP32_SPIRAM_SUPPORT=y
249249
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
250250

@@ -262,7 +262,7 @@ CONFIG_SPIRAM_TYPE_ESPPSRAM64=n
262262
CONFIG_SPIRAM_SIZE=-1
263263
CONFIG_SPIRAM_SPEED_40M=y
264264
# CONFIG_SPIRAM_MEMTEST is not set
265-
CONFIG_SPIRAM_CACHE_WORKAROUND=y
265+
# CONFIG_SPIRAM_CACHE_WORKAROUND is not set
266266
CONFIG_SPIRAM_BANKSWITCH_ENABLE=y
267267
CONFIG_SPIRAM_BANKSWITCH_RESERVE=8
268268
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
@@ -379,8 +379,8 @@ CONFIG_ETH_USE_ESP32_EMAC=y
379379
CONFIG_ETH_PHY_INTERFACE_RMII=y
380380
# CONFIG_ETH_PHY_INTERFACE_MII is not set
381381

382-
CONFIG_ETH_RMII_CLK_OUTPUT=y
383-
CONFIG_ETH_RMII_CLK_OUT_GPIO=17
382+
#CONFIG_ETH_RMII_CLK_OUTPUT=y
383+
#CONFIG_ETH_RMII_CLK_OUT_GPIO=n
384384
#CONFIG_ETH_RMII_CLK_INPUT=y
385385
#CONFIG_ETH_RMII_CLK_IN_GPIO=n
386386

@@ -392,7 +392,8 @@ CONFIG_ETH_DMA_TX_BUFFER_NUM=10
392392
CONFIG_ETH_USE_SPI_ETHERNET=y
393393
CONFIG_ETH_SPI_ETHERNET_DM9051=y
394394
CONFIG_ETH_SPI_ETHERNET_W5500=y
395-
CONFIG_ETH_USE_OPENETH=y
395+
CONFIG_ETH_SPI_ETHERNET_KSZ8851SNL=y
396+
#CONFIG_ETH_USE_OPENETH=n
396397
# end of Ethernet
397398

398399
#

0 commit comments

Comments
 (0)