Optimizing IRAM usage: How to allocate SRAM1 as IRAM
Posted: Thu Feb 29, 2024 2:22 pm
Hi,
I am sorry if this is not correct forum to ask my question.
I have developed custom micropython firmware. I am using BLE, I2C, ADC, DAC, PWM, some GPIO pins as input and output in my custom firmware. When checking my IRAM and DRAM size (idf.py size), the output shows that my IRAM usage is 97.3% and DRAM usage is 43%. In this forum, I read that by allocating SRAM1 to IRAM using CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM bit, I can increase IRAM size. But I do not know how to change it (or where is this setting). I could not find this setting. I asked this question in micropython github also, but have not got any answer.
If possible, could you please help me with this issue. Thank you in advance.
I am sorry if this is not correct forum to ask my question.
I have developed custom micropython firmware. I am using BLE, I2C, ADC, DAC, PWM, some GPIO pins as input and output in my custom firmware. When checking my IRAM and DRAM size (idf.py size), the output shows that my IRAM usage is 97.3% and DRAM usage is 43%. In this forum, I read that by allocating SRAM1 to IRAM using CONFIG_ESP_SYSTEM_ESP32_SRAM1_REGION_AS_IRAM bit, I can increase IRAM size. But I do not know how to change it (or where is this setting). I could not find this setting. I asked this question in micropython github also, but have not got any answer.
If possible, could you please help me with this issue. Thank you in advance.