Skip to content

Commit e2219e5

Browse files
committed
boards: Reduce the Fire's SPIRAM rate.
For compatibility with older versions of Fire, a 40Mhz SPIRAM is required. Signed-off-by: lbuque <[email protected]>
1 parent 3ff924b commit e2219e5

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

m5stack/boards/M5STACK_Fire/mpconfigboard.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set(SDKCONFIG_DEFAULTS
1313
./boards/sdkconfig.240mhz
1414
./boards/sdkconfig.disable_iram
1515
./boards/M5STACK_Fire/sdkconfig.board
16-
./boards/sdkconfig.spiram
16+
# ./boards/sdkconfig.spiram
1717
)
1818

1919
# If not enable LVGL, ignore this...

m5stack/boards/M5STACK_Fire/sdkconfig.board

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,26 @@ CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=n
77
CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC=y
88

99
# Flash
10-
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
11-
CONFIG_ESPTOOLPY_FLASHFREQ="80m"
10+
#CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
11+
#CONFIG_ESPTOOLPY_FLASHFREQ="80m"
1212
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
1313

14+
15+
CONFIG_SPIRAM=y
16+
CONFIG_ESP32_SPIRAM_SUPPORT=y
17+
CONFIG_SPIRAM_CACHE_WORKAROUND=y
18+
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
19+
#CONFIG_SPIRAM_USE_MEMMAP=y
20+
21+
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
22+
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
23+
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
24+
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
25+
CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH=y
26+
27+
CONFIG_SPIRAM_SPEED_40M=y
28+
CONFIG_SPIRAM_SPEED=40
29+
1430
# MicroPython on ESP32, ESP IDF configuration with SPIRAM support
1531

1632
CONFIG_ESP32_SPIRAM_SUPPORT=y

0 commit comments

Comments
 (0)