F-12892: wolfBoot_update_trigger acts on the update partition

The function sets the update partition state to IMG_STATE_UPDATING and
erases the update partition last sector; the doc said boot partition.
pull/892/head
Daniele Lacamera 2026-09-16 12:15:23 +02:00
parent 180647eb1c
commit 17d6cc2604
1 changed files with 2 additions and 2 deletions

View File

@ -865,8 +865,8 @@ void RAMFUNCTION wolfBoot_erase_partition(uint8_t part)
/**
* @brief Update trigger function.
*
* This function updates the boot partition state to "IMG_STATE_UPDATING".
* If the FLAGS_HOME macro is defined, it erases the last sector of the boot
* This function sets the update partition state to "IMG_STATE_UPDATING".
* If the FLAGS_HOME macro is defined, it erases the last sector of the update
* partition before updating the partition state. It also checks FLAGS_UPDATE_EXT
* and calls the appropriate flash unlock and lock functions before
* updating the partition state.