fdcavalcanti opened a new pull request, #17227:
URL: https://github.com/apache/nuttx/pull/17227

   # Summary
   
   - boards/risc-v: optimize linker script IRAM section
   Adds lipbb (Wi-Fi related) to IRAM and removes unnecessary E-Fuse sources.
   
   - boards/xtensa: optimize linker script IRAM section
   Improve IRAM usage.
   Remove unnecessary E-Fuse sources;
   Optimizing (ESP32) and add (S2|S3) libpp(Wi-Fi related).
   
   This PR frees up IRAM space on Espressif devices by adding or modifying the 
libpp functions placed in IRAM, while also removing unnecessary E-Fuse related 
functions.
   
   ## Impact
   - Impact on user: Yes, frees up some IRAM space (around 35 kB)
   - Impact on build: No.
   - Impact on hardware: ESP32-S2|S3|C3|C6 (Wi-Fi capable).
   - Impact on documentation: No.
   - Impact on security: No.
   - Impact on compatibility: No.
   
   ## Testing
   Generic CI testing covering Wi-Fi usage and all defconfigs. No issues.
   Example below shows difference in IRAM usage before and after change, using 
ESP32 on blewifi defconfig.
   
   ### Building
   
   - ./tools/configure.sh esp32-devkitc:blewifi
   - make
   
   ### Results
   Before:
   
   ``` 
   Memory region         Used Size  Region Size  %age Used
                ROM:      865046 B    4194272 B     20.62%
        iram0_0_seg:      163680 B       168 KB     95.15%
        irom0_0_seg:      668438 B    3342304 B     20.00%
        dram0_0_seg:       94024 B     115200 B     81.62%
        drom0_0_seg:      155264 B    4194272 B      3.70%
       rtc_iram_seg:           0 B         8 KB      0.00%
       rtc_slow_seg:           0 B         4 KB      0.00%
         extmem_seg:           0 B         4 MB      0.00%
   ```
   
   After:
   
   ```
   Memory region         Used Size  Region Size  %age Used
                ROM:      900410 B    4194272 B     21.47%
        iram0_0_seg:      128376 B       168 KB     74.62%
        irom0_0_seg:      703802 B    3342304 B     21.06%
        dram0_0_seg:       93928 B     115200 B     81.53%
        drom0_0_seg:      155360 B    4194272 B      3.70%
       rtc_iram_seg:           0 B         8 KB      0.00%
       rtc_slow_seg:           0 B         4 KB      0.00%
         extmem_seg:           0 B         4 MB      0.00%
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to