pkarashchenko commented on PR #17340:
URL: https://github.com/apache/nuttx/pull/17340#issuecomment-3591968486

   As an alternative to this I experimenting with
   ```
   CONFIG_SAMV7_OTA_PRIMARY_SLOT_OFFSET=0x24000
   CONFIG_SAMV7_OTA_SCRATCH_OFFSET=0x74000
   CONFIG_SAMV7_OTA_SCRATCH_SIZE=0x6000
   CONFIG_SAMV7_OTA_SECONDARY_SLOT_OFFSET=0x4C000
   ```
   So basically update `boards/arm/samv7/common/Kconfig` to:
   ```
   if SAMV7_FORMAT_MCUBOOT
   
   comment "MCUboot Application Image OTA Update support"
   
   config SAMV7_OTA_PRIMARY_SLOT_OFFSET
        hex "MCUboot application image primary slot offset"
        default 0x24000
   
   config SAMV7_OTA_PRIMARY_SLOT_DEVPATH
        string "Application image primary slot device path"
        default "/dev/ota0"
   
   config SAMV7_OTA_SECONDARY_SLOT_OFFSET
        hex "MCUboot application image secondary slot offset"
        default 0x4C000  if SAMV7_MEM_FLASH_512
        default 0x84000  if SAMV7_MEM_FLASH_1024
        default 0x104000 if SAMV7_MEM_FLASH_2048
   
   config SAMV7_OTA_SECONDARY_SLOT_DEVPATH
        string "Application image secondary slot device path"
        default "/dev/ota1"
   
   config SAMV7_OTA_SLOT_SIZE
        hex "MCUboot application image slot size (in bytes)"
        default 0x28000  if SAMV7_MEM_FLASH_512
        default 0x60000  if SAMV7_MEM_FLASH_1024
        default 0xe0000  if SAMV7_MEM_FLASH_2048
   
   config SAMV7_OTA_SCRATCH_OFFSET
        hex "MCUboot scratch partition offset"
        default 0x74000  if SAMV7_MEM_FLASH_512
        default 0xe4000  if SAMV7_MEM_FLASH_1024
        default 0x1e4000 if SAMV7_MEM_FLASH_2048
   
   config SAMV7_OTA_SCRATCH_DEVPATH
        string "Scratch partition device path"
        default "/dev/otascratch"
   
   config SAMV7_OTA_SCRATCH_SIZE
        hex "MCUboot scratch partition size (in bytes)"
        default 0x6000  if SAMV7_MEM_FLASH_512
        default 0x1C000
   
   endif # SAMV7_FORMAT_MCUBOOT
   ```
   so basically extend MCUboot loader maximum  size from 128K to 144K. What do 
you think?


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