You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*! \brief Pick A/B partition without disturbing any in progress update or TBYB boot
1075
1075
* \ingroup pico_bootrom
1076
1076
*
1077
-
* This will call `rom_pick_ab_partition` with the current `flash_update_boot_window_base`, while performing extra checks to prevent disrupting a main image TBYB.
1078
-
* It requires the same minimum workarea size as `rom_pick_ab_partition`.
1077
+
* This will call `rom_pick_ab_partition` using the `flash_update_boot_window_base` from the current boot, while performing extra checks to prevent disrupting
1078
+
* a main image TBYB boot. It requires the same minimum workarea size as `rom_pick_ab_partition`.
1079
1079
* \see rom_pick_ab_partition()
1080
1080
*
1081
-
* For example, if an `explicit_buy` is pending then calling `pick_ab_partition` would normally clear the saved `flash_erase_addr` so the required erase would not
1082
-
* occur when `explicit_buy` is called - this function saves and restores that address to prevent this issue, and returns `BOOTROM_ERROR_NOT_PERMITTED` if the
1083
-
* partition chosen by `pick_ab_partition` also requires a flash erase version downgrade (as you can't erase 2 partitions with one `explicit_buy` call).
1081
+
* For example, if an `explicit_buy` is pending then calling `pick_ab_partition` would normally clear the saved flash erase address for the version downgrade,
1082
+
* so the required erase of the other partition would not occur when `explicit_buy` is called - this function saves and restores that address to prevent this
1083
+
* issue, and returns `BOOTROM_ERROR_NOT_PERMITTED` if the partition chosen by `pick_ab_partition` also requires a flash erase version downgrade (as you can't
1084
+
* erase 2 partitions with one `explicit_buy` call).
1084
1085
*
1085
1086
* It also checks that the chosen partition contained a valid image (eg a signed image when using secure boot), and returns `BOOTROM_ERROR_NOT_FOUND`
0 commit comments