Skip to content

Commit

Permalink
Initialize wolfPKCS11 also in "_hwswap" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
danielinux committed May 24, 2024
1 parent df4dd3d commit d573efa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/update_flash_hwswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
#include "hal.h"
#include "spi_flash.h"
#include "wolfboot/wolfboot.h"
#ifdef SECURE_PKCS11
int WP11_Library_Init(void);
#endif

extern void hal_flash_dualbank_swap(void);

Expand Down Expand Up @@ -92,6 +95,9 @@ void RAMFUNCTION wolfBoot_start(void)
hal_flash_lock();
}
}
#ifdef SECURE_PKCS11
WP11_Library_Init();
#endif
hal_prepare_boot();
do_boot((void *)(WOLFBOOT_PARTITION_BOOT_ADDRESS + IMAGE_HEADER_SIZE));
}

0 comments on commit d573efa

Please sign in to comment.