boot_request_upgrade seems not work as expected

Hi,nordic team

Iam programming with nrf52833 and ncs v2.9.0

I am doing DFU by myself.And I Flash_write data into slot1_partition,I am sure my data write in flash is correct.But there are two questions confusing me.

1、I flash 1k data one times,but the last package is less than 1k,what should I write in flash?0x00 or 0xFF?or any other? Though I tried two neither of them work.

2、I call boot_request_upgrade(BOOT_UPGRADE_PERMANENT) after all data flash done,then call sys_reboot(SYS_REBOOT_COLD),but new img doesn't work as expected.

Best regard

Related