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

   ## Summary
   
   Add the heap test to `psram` and `psram_usrheap` defconfigs of 
`esp32-devkitc`.
   
   This allows straightforward test of the heap.
   
   ## Impact
   
   Impact on user: No.
   
   Impact on build: No.
   
   Impact on hardware: No.
   
   Impact on documentation: No.
   
   Impact on security: No.
   
   Impact on compatibility: No.
   
   ## Testing
   
   This modification enables the`heap` application for testing. 
   
   ### Building
   Build for any of the following defconfigs.
   
   - ./tools/configure.sh esp32-devkitc:psram_usrheap and ./tools/configure.sh 
esp32-devkitc:psram
   - make and flash
   
   ### Running
   Heap test works with no issues.
   
   ```
   NuttShell (NSH) NuttX-10.4.0
   nsh> free
         total       used       free    maxused    maxfree  nused  nfree name
        302824      12232     290592      12640     167280     32      4 Kmem
       4194304       5312    4188992     843560    4188992      8      1 Umem
   nsh> heap
        mallinfo:
          Total space allocated from system = 4194304
          Number of non-inuse chunks        = 1
          Largest non-inuse chunk           = 4186920
          Total allocated space             = 7384
          Total non-inuse space             = 4186920
   (0)Allocating 5024 bytes
   [......]
   (31)Releasing memory at 0x3f801d18 (size=24 bytes)
        mallinfo:
          Total space allocated from system = 4194304
          Number of non-inuse chunks        = 1
          Largest non-inuse chunk           = 4186920
          Total allocated space             = 7384
          Total non-inuse space             = 4186920
   TEST COMPLETE
   ```
   
   
   ### Results
   Heap tests finalizes with no errors. No build errors.
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to