Skip to content

Commit

Permalink
fix: spiram mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythologyli committed Sep 5, 2022
1 parent a1b6877 commit 211f292
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
name: firmware
path: |
micropython/ports/esp32/build-GENERIC_S3_N16R8/firmware.bin
micropython/ports/esp32/build-GENERIC_S3_N16R8/bootloader
micropython/ports/esp32/build-GENERIC_S3_N16R8/bootloader/bootloader*
micropython/ports/esp32/build-GENERIC_S3_N16R8/partition_table
micropython/ports/esp32/build-GENERIC_S3_N16R8/*flash*
micropython/ports/esp32/build-GENERIC_S3_N16R8/micropython*
2 changes: 1 addition & 1 deletion GENERIC_S3_N16R8/mpconfigboard.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ set(IDF_TARGET esp32s3)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.usb
boards/sdkconfig.spiram_sx
boards/GENERIC_S3_N16R8/sdkconfig.spiram_sx
boards/GENERIC_S3_N16R8/sdkconfig.board
)
15 changes: 15 additions & 0 deletions GENERIC_S3_N16R8/sdkconfig.spiram_sx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# MicroPython on ESP32-S2 and ESP32-PAD1_subscript_3, ESP IDF configuration with SPIRAM support
CONFIG_ESP32S2_SPIRAM_SUPPORT=y
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
CONFIG_SPIRAM_MODE_OCT=y
CONFIG_SPIRAM_TYPE_AUTO=y
CONFIG_DEFAULT_PSRAM_CLK_IO=30
CONFIG_DEFAULT_PSRAM_CS_IO=26
CONFIG_SPIRAM_SPEED_80M=y
CONFIG_SPIRAM=y
CONFIG_SPIRAM_BOOT_INIT=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
CONFIG_SPIRAM_USE_MEMMAP=y
CONFIG_SPIRAM_MEMTEST=y
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=16384
CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL=32768

0 comments on commit 211f292

Please sign in to comment.