Skip to content

Compiling the firmware for ESP32 with two board variants #16493

Closed Answered by shariltumin
asherevan asked this question in ESP32
Discussion options

You must be logged in to vote

Make a copy of ESP32_GENERIC

$ cd boards
$ cp -r ESP32_GENERIC ESP32_ASH

Edit sdconfig.ash

$ cd ESP32_ASH
$ vi sdconfig.ash

with these lines

# MicroPython on ESP32, ESP IDF configuration with SPIRAM support

CONFIG_SPIRAM=y
CONFIG_SPIRAM_CACHE_WORKAROUND=y
CONFIG_SPIRAM_IGNORE_NOTFOUND=y
CONFIG_SPIRAM_USE_MALLOC=y

# This is the threshold for preferring small allocations from internal memory
# first, before failing over to PSRAM.
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=8192

# SPIRAM increases the size of the firmware and overflows iram0_0_seg, due
# to PSRAM bug workarounds.  Apply some options to reduce the firmware size.
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_COMPILER_OPTIMIZATION_CHEC…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by asherevan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants