Seeed-Solution / SenseCAP_Indicator_ESP32

SenseCAP Indicator SDK.
https://wiki.seeedstudio.com/SenseCAP_Indicator_How_To_Flash_The_Default_Firmware/#ESP-IDF
Apache License 2.0
32 stars 22 forks source link

Build error - ESP_STATIC_ASSERT #2

Closed Goran58 closed 1 year ago

Goran58 commented 1 year ago

When I'm building the examples with current master version of ESP-IDF I get following errors:

In file included from /home/gol/esp/esp-idf/components/newlib/platform_include/assert.h:16,
                 from /home/gol/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/xtensa-esp32s3-elf/sys-include/sys/reent.h:503,
                 from /home/gol/esp/esp-idf/components/newlib/platform_include/sys/reent.h:9,
                 from /home/gol/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/xtensa-esp32s3-elf/sys-include/stdlib.h:18,
                 from /home/gol/esp/esp-idf/components/esp_hw_support/mspi_timing_tuning.c:7:
/home/gol/esp/esp-idf/components/esp_common/include/esp_assert.h:12:27: error: static assertion failed: "FLASH and PSRAM Mode configuration are not supported"
   12 | #define ESP_STATIC_ASSERT static_assert
      |                           ^~~~~~~~~~~~~
/home/gol/esp/esp-idf/components/esp_hw_support/port/esp32s3/./mspi_timing_tuning_configs.h:172:1: note: in expansion of macro 'ESP_STATIC_ASSERT'
  172 | ESP_STATIC_ASSERT(CHECK_POWER_OF_2(MSPI_TIMING_CORE_CLOCK_MHZ / MSPI_TIMING_PSRAM_MODULE_CLOCK), "FLASH and PSRAM Mode configuration are not supported");

Any idea what's wrong?

Goran58 commented 1 year ago

I solved it myself. You have to enable Experimental features and set SPI RAM Speed to 120Mhz

sdkconfig:

CONFIG_IDF_EXPERIMENTAL_FEATURES=y
CONFIG_SPIRAM_SPEED_120M=y
CONFIG_SPIRAM_SPEED=120
Love4yzp commented 1 year ago

Patch README May help.

Thans for your solution.