Skip to content

Commit 60dd6aa

Browse files
committed
suit: Flush image IPUC before release
It is required to flash image IPUC at the end of the transfer, so the digest check will be performed on the new content. Ref: NCSDK-32185 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 8d1d78f commit 60dd6aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/flash/flash_ipuc/flash_ipuc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,8 @@ void flash_image_ipuc_release(size_t id)
815815
{
816816
for (size_t i = 0; i < ARRAY_SIZE(ipuc_imgs); i++) {
817817
if (ipuc_imgs[i].id == id) {
818+
/* Flush any remaining data. */
819+
(void)nrf_ipuc_write(ipuc_imgs[i].fdev, 0, NULL, 0);
818820
flash_ipuc_release(ipuc_imgs[i].fdev);
819821
ipuc_imgs[i].fdev = NULL;
820822
break;

0 commit comments

Comments
 (0)