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

   ## Summary
   
   <!-- This field should contain a summary of the changes. It will be 
pre-filled with the commit's message and descriptions. Adjust it accordingly -->
   
   * boards/xtensa/esp32: increase MM_REGIONS for psram defconfig
   
   Increase MM_REGIONS from 5 to 6 to accomodate latest changes from
   initialization refactor.
   
   This change was necessary since the arch init changes on #18832. We fixed 
some issues on ESP32-S3 but seems we forgot about this one.
   
   ## Impact
   <!-- Please fill the following sections with YES/NO and provide a brief 
explanation -->
   
   Impact on user: Fix esp32-devkitc:psram boot when DEBUG_ASSERTIONS are 
enabled.
   <!-- Does it impact user's applications? How? -->
   
   Impact on build: No.
   <!-- Does it impact on building NuttX? How? (please describe the required 
changes on the build system) -->
   
   Impact on hardware: No.
   <!-- Does it impact a specific hardware supported by NuttX? -->
   
   Impact on documentation: No.
   <!-- Does it impact the existing documentation? Please provide additional 
documentation to reflect that -->
   
   Impact on security: No.
   <!-- Does it impact NuttX's security? -->
   
   Impact on compatibility: No.
   <!-- Does it impact compatibility between previous and current versions? Is 
this a breaking change? -->
   
   ## Testing
   <!-- Please provide all the testing procedure. Consider that upstream 
reviewers should be able to reproduce the same testing performed internally -->
   Build the psram defconfig before and after the change.
   
   ### Building
   <!-- Provide how to build the test for each SoC being tested -->
   - ./tools/configure.sh esp32-devkitc:psram
   - Enable DEBUG_ASSERTIONS
   - Build and flash
   
   ### Results
   <!-- Provide tests' results and runtime logs -->
   Before changes:
   
   ```
   [CPU0] mm_addregion: mm_addregion: idx=5, heapstart=0x3ffe4360, heapsize=3792
   [CPU0] dump_assert_info: Current Version: NuttX  12.13.0 e226a634fb-dirty 
May 20 2026 14:52:26 xtensa
   [CPU0] dump_assert_info: Assertion failed idx < 5: at file: 
mm_heap/mm_initialize.c:118 task(CPU0): AppBringUp process: Kernel 0x400d1f38
   [CPU0] up_dump_register:    PC: 40086621    PS: 00060223
   ```
   
   After changes:
   System boots fine.
   
   ```
   NuttShell (NSH) NuttX-12.13.0
   nsh> free
         total       used       free    maxused    maxfree  nused  nfree name
         98304       8648      89656      11120      87600      5      2 
esp32-imem
       4401224       4296    4396928       4712    4194288     44      7 Umem
   ```


-- 
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