Open 0x0fe opened 1 year ago
@0x0fe I'm not repeating your problem. I think you can disable all the IRAM optimization option in sdkconfig, such as ESP32_WIFI_IRAM_OPT, ESP32_WIFI_RX_IRAM_OPT, etc.
Same issue as https://github.com/espressif/esp-adf/issues/917
@jason-mao all IRAM optimisations were disabled already, the only option which allowed to build was to set
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH
Which was advised by yourself in another issue ticket (i cannot find it at the moment).
If possible please review my SDKConfig. Many options have been modified to be able to run Wifi + BT + BLE at the same time, i just want to be sure no options are conflicting.
So, when testing the OTA example from last ADF (2.6), compiled alone (all other sources in the project are disabled by preprocessor defines) it cannot build due to the IRAM being overflown by 664 byte. There must be a bug somewhere, furthermore that we use ESP32D0QDR2 which has 2 MB internal PSRAM, and it is enabled in sdkconfig, along with all optimisations related to SPIRAM. In SDKConfig i also have the BT dual mode enabled, because the product uses both A2DP and BLE for provisioning. But we can run wifi, BT and BLE at the same time without getting out of IRAM, with the actual firmware, so i am not sure how the OTA example, running standalone could use all the IRAM.
If i clean, and then build, it can build (once), but as soon as i try to upload, it fails with the IRAM overflow message. Which doesnt make much sense either.
after upload or upload and monitor
after clean, then build (but trying upload after that, will fail with IRAM overflow).