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

   
   ## Summary
   
   Bad block management and the logical->physical mapping is only needed with 
NAND based memories, so we can compile that in conditionally, saving ~600 bytes 
of flash on a 32-bit arm when NAND is not used.
   
   ## Impact
   
   This only removes dead code on a system which doesn't have CONFIG_MTD_NAND 
defined
   
   ## Testing
   
   Building for stm32l476vg-disco:nsh:
   
   ```
   The original size:
   
   LD: nuttx                          
   Memory region         Used Size  Region Size  %age Used
              flash:      117168 B       512 KB     22.35%
               sram:        9488 B        96 KB      9.65%
              sram2:          0 GB        32 KB      0.00%
   
   The size after change:
   
   LD: nuttx                                            
   Memory region         Used Size  Region Size  %age Used
              flash:      116552 B       512 KB     22.23%
               sram:        9488 B        96 KB      9.65%
              sram2:          0 GB        32 KB      0.00%
   ```
   
   Diff being 616 bytes smaller.
   
   Functionality has been tested with PX4 on Pixhawk4 hardware (stm32f7), which 
has px4 parameters on an MTD partition and no NAND.
   


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