@@ -8,18 +8,18 @@ and the application initiating the firmware upgrade through the application libr
88ensuring that the MCU is running at full speed during boot (to optimize the
99verification of the signatures).
1010
11- The implementation of the hardware-specific calls for each platform are grouped in
11+ The implementation of the hardware-specific calls for each platform are grouped in
1212a single c file in the [ hal] ( ../hal ) directory.
1313
14- The directory also contains a platform-specific linker script for each supported MCU,
15- with the same name and the ` .ld ` extension. This is used to link the bootloader's
16- firmware on the specific hardware, exporting all the necessary symbols for flash
14+ The directory also contains a platform-specific linker script for each supported MCU,
15+ with the same name and the ` .ld ` extension. This is used to link the bootloader's
16+ firmware on the specific hardware, exporting all the necessary symbols for flash
1717and RAM boundaries.
1818
1919## Supported platforms
2020
2121The following platforms are supported in the current version:
22- - STM32F4, STM32L5, STM32L0, STM32F7 , STM32H7, STM32G0, STM32C0
22+ - STM32C0, STM32F4, STM32F7, STM32G0 , STM32H7, STM32L5, STM32L0, STM32U5, STM32WB55
2323 - nRF52
2424 - Atmel samR21
2525 - TI cc26x2
@@ -34,8 +34,8 @@ be implemented for each supported target:
3434` void hal_init(void) `
3535
3636This function is called by the bootloader at the very beginning of the execution.
37- Ideally, the implementation provided configures the clock settings for the target
38- microcontroller, to ensure that it runs at at the required speed to shorten the
37+ Ideally, the implementation provided configures the clock settings for the target
38+ microcontroller, to ensure that it runs at at the required speed to shorten the
3939time required for the cryptography primitives to verify the firmware images.
4040
4141` void hal_flash_unlock(void) `
@@ -76,11 +76,11 @@ that the state of the microcontroller is restored to its original settings.
7676
7777WolfBoot can be compiled with the makefile option ` EXT_FLASH=1 ` . When the external flash support is
7878enabled, update and swap partitions can be associated to an external memory, and will use alternative
79- HAL function for read/write/erase access.
80- To associate the update or the swap partition to an external memory, define ` PART_UPDATE_EXT ` and/or
79+ HAL function for read/write/erase access.
80+ To associate the update or the swap partition to an external memory, define ` PART_UPDATE_EXT ` and/or
8181` PART_SWAP_EXT ` , respectively.
8282
83- The following functions are used to access the external memory, and must be defined when ` EXT\_FLASH `
83+ The following functions are used to access the external memory, and must be defined when ` EXT\_FLASH `
8484is on:
8585
8686` int ext_flash_write(uintptr_t address, const uint8_t *data, int len) `
@@ -96,15 +96,15 @@ or a negative value in case of failure.
9696This function provides an indirect read of the external memory, using the
9797driver's specific interface. ` address ` is the offset from the beginning of the
9898addressable space in the device, ` data ` is a pointer where payload is stored upon a successful
99- call, and ` len ` is the maximum size allowed for the payload. ` ext_flash_read ` should return 0
99+ call, and ` len ` is the maximum size allowed for the payload. ` ext_flash_read ` should return 0
100100upon success, or a negative value in case of failure.
101101
102102` int ext_flash_erase(uintptr_t address, int len) `
103103
104104Called by the bootloader to erase part of the external memory.
105105Erase operations must be performed via the specific interface of the target driver (e.g. SPI flash).
106- ` address ` marks the start of the area relative to the device, that the bootloader wants to erase,
107- and ` len ` specifies the size of the area to be erased. This function must take into account the
106+ ` address ` marks the start of the area relative to the device, that the bootloader wants to erase,
107+ and ` len ` specifies the size of the area to be erased. This function must take into account the
108108geometry of the sectors, and erase all the sectors in between.
109109
110110` void ext_flash_lock(void) `
0 commit comments