Skip to content

Commit 74db3c2

Browse files
authored
Update work area size from 3064 to 3264, and recommend 3.25K (#2073)
1 parent d3080e7 commit 74db3c2

File tree

1 file changed

+4
-4
lines changed
  • src/rp2_common/pico_bootrom/include/pico

1 file changed

+4
-4
lines changed

src/rp2_common/pico_bootrom/include/pico/bootrom.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ static inline int rom_get_partition_table_info(uint32_t *out_buffer, uint32_t ou
668668
*
669669
* This method potentially requires similar complexity to the boot path in terms of picking amongst versions, checking signatures etc.
670670
* As a result it requires a user provided memory buffer as a work area. The work area should byte word-aligned and of sufficient size
671-
* or BOOTROM_ERROR_INSUFFICIENT_RESOURCES will be returned. The work area size currently required is 3064, so 3K is a good choice.
671+
* or BOOTROM_ERROR_INSUFFICIENT_RESOURCES will be returned. The work area size currently required is 3264, so 3.25K is a good choice.
672672
*
673673
* If force_reload is false, then this method will return BOOTROM_OK immediately if the bootrom is loaded, otherwise it will
674674
* reload the partition table if it has been loaded already, allowing for the partition table to be updated in a running program.
@@ -695,7 +695,7 @@ static inline int rom_load_partition_table(uint8_t *workarea_base, uint32_t work
695695
*
696696
* This method potentially requires similar complexity to the boot path in terms of picking amongst versions, checking signatures etc.
697697
* As a result it requires a user provided memory buffer as a work area. The work area should bye word aligned, and of sufficient size
698-
* or BOOTROM_ERROR_INSUFFICIENT_RESOURCES will be returned. The work area size currently required is 3064, so 3K is a good choice.
698+
* or BOOTROM_ERROR_INSUFFICIENT_RESOURCES will be returned. The work area size currently required is 3264, so 3.25K is a good choice.
699699
*
700700
* The passed partition number can be any valid partition number other than the "B" partition of an A/B pair.
701701
*
@@ -742,7 +742,7 @@ static inline int rom_get_b_partition(uint pi_a) {
742742
*
743743
* This method potentially requires similar complexity to the boot path in terms of picking amongst versions, checking signatures etc.
744744
* As a result it requires a user provided memory buffer as a work area. The work area should byte word-aligned and of sufficient size
745-
* or `BOOTROM_ERROR_INSUFFICIENT_RESOURCES` will be returned. The work area size currently required is 3064, so 3K is a good choice.
745+
* or `BOOTROM_ERROR_INSUFFICIENT_RESOURCES` will be returned. The work area size currently required is 3264, so 3.25K is a good choice.
746746
*
747747
* If the partition table
748748
* has not been loaded (e.g. from a watchdog or RAM boot), then this method will return `BOOTROM_ERROR_PRECONDITION_NOT_MET`, and you
@@ -795,7 +795,7 @@ static inline intptr_t rom_flash_runtime_to_storage_addr(uintptr_t flash_runtime
795795
*
796796
* This method potentially requires similar complexity to the boot path in terms of picking amongst versions, checking signatures etc.
797797
* As a result it requires a user provided memory buffer as a work area. The work area should be word aligned, and of sufficient size
798-
* or BOOTROM_ERROR_INSUFFICIENT_RESOURCES will be returned. The work area size currently required is 3064, so 3K is a good choice.
798+
* or BOOTROM_ERROR_INSUFFICIENT_RESOURCES will be returned. The work area size currently required is 3264, so 3.25K is a good choice.
799799
*
800800
* NOTE: This method is primarily expected to be used when implementing bootloaders.
801801
*

0 commit comments

Comments
 (0)