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

   ## Summary
   
   - boards/arm/samv7: fix default flash image size when using MCUBoot
   
   Fixes `FLASH_IMG_SIZE` definition to use `SAMV7_OTA_SLOT_SIZE` for the 
`CONFIG_BOARDCTL_BOOT_IMAGE` condition, keeping in sync with the other 
definitions on the same file.
   
   This should fix linker issues reported in [nuttx-apps 
#3200](https://github.com/apache/nuttx-apps/pull/3200#issuecomment-3530151416).
   
   ## Impact
   
   Affects common linker script for `arm/samv7` when using MCUBoot. 
   
   ## Testing
   
   Before changes:
   ```
   $ make -j10
   [...]
   Register: mcuboot_loader
   Register: ramtest
   Register: sh
   Register: nsh
   [...]
   LD: nuttx
   arm-none-eabi-ld: /home/fdcavalcanti/nuttxspace1/nuttx/nuttx section `.text' 
will not fit in region `flash'
   arm-none-eabi-ld: region `flash' overflowed by 3672 bytes
   make[1]: *** [Makefile:217: nuttx] Error 1
   make: *** [tools/Unix.mk:552: nuttx] Error 2
   ```
   
   
   After changes:
   ```
   $ make -j10
   Create version.h
   [...]
   Register: mcuboot_loader
   Register: ramtest
   Register: sh
   Register: nsh
   [...]
   LD: nuttx
   CP: nuttx.bin
   ```
   


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