Skip to content
Open
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
10 changes: 10 additions & 0 deletions cpu/esp32/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@ endif

ifneq (,$(filter esp_spi_ram,$(USEMODULE)))
INCLUDES += -I$(ESP32_SDK_DIR)/components/esp_psram/include
ifeq (esp32,$(CPU_FAM))
# Workaround for the SPI RAM cache bug of ESP32 revisions < 3
# (CONFIG_SPIRAM_CACHE_WORKAROUND): The compiler avoids the vulnerable
# instruction sequences, and the linker uses the multilib variants of
# libc and libgcc that are compiled with this workaround.
PSRAM_WORKAROUND_FLAGS = -mfix-esp32-psram-cache-issue
PSRAM_WORKAROUND_FLAGS += -mfix-esp32-psram-cache-strategy=memw
CFLAGS += $(PSRAM_WORKAROUND_FLAGS)
LINKFLAGS += $(PSRAM_WORKAROUND_FLAGS)
endif
endif

ifneq (,$(filter esp_idf_lcd,$(USEMODULE)))
Expand Down
Loading