mirror of https://github.com/ARMmbed/mbed-os.git
M2354: Update to TF-M 1.3
parent
98f5a99219
commit
e2491509f5
|
@ -5,13 +5,12 @@ This document guides how to rebuild TF-M and integrate with Mbed on M2354.
|
|||
### Downloading TF-M source
|
||||
|
||||
The M2354 port in TF-M must patch to enable TF-M integration with Mbed.
|
||||
For TF-M 1.2/Mbed integration on M2354, the [mainstream TF-M](https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git) is patched as follows:
|
||||
For TF-M 1.3/Mbed integration on M2354, the [mainstream TF-M](https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git) is patched as follows:
|
||||
- Apply Mbed-enabled patch to `nuvoton/m2354` TF-M target.
|
||||
- Backport to base on [ARMmbed TF-M mbed-tfm-1.2](https://github.com/ARMmbed/trusted-firmware-m/tree/mbed-tfm-1.2).
|
||||
|
||||
Run the following command to fetch and switch to the intended version:
|
||||
```sh
|
||||
git clone https://github.com/OpenNuvoton/trusted-firmware-m -b nuvoton_mbed_m2354_tfm-1.2
|
||||
git clone https://github.com/OpenNuvoton/trusted-firmware-m -b nuvoton_mbed_m2354_tfm-1.3
|
||||
```
|
||||
|
||||
## Customizing TF-M
|
||||
|
|
Binary file not shown.
|
@ -124,19 +124,19 @@
|
|||
* Note: Further documentation of these definitions can be found in the
|
||||
* TF-M PS Integration Guide.
|
||||
*/
|
||||
#define PS_FLASH_DEV_NAME Driver_FLASH0
|
||||
#define TFM_HAL_PS_FLASH_DRIVER Driver_FLASH0
|
||||
|
||||
/* In this target the CMSIS driver requires only the offset from the base
|
||||
* address instead of the full memory address.
|
||||
*/
|
||||
#define PS_FLASH_AREA_ADDR FLASH_PS_AREA_OFFSET
|
||||
#define TFM_HAL_PS_FLASH_AREA_ADDR FLASH_PS_AREA_OFFSET
|
||||
/* Dedicated flash area for PS */
|
||||
#define PS_FLASH_AREA_SIZE FLASH_PS_AREA_SIZE
|
||||
#define TFM_HAL_PS_FLASH_AREA_SIZE FLASH_PS_AREA_SIZE
|
||||
#define PS_SECTOR_SIZE FLASH_AREA_IMAGE_SECTOR_SIZE
|
||||
/* Number of PS_SECTOR_SIZE per block */
|
||||
#define PS_SECTORS_PER_BLOCK (0x1)
|
||||
#define TFM_HAL_PS_SECTORS_PER_BLOCK (0x1)
|
||||
/* Specifies the smallest flash programmable unit in bytes */
|
||||
#define PS_FLASH_PROGRAM_UNIT (0x4)
|
||||
#define TFM_HAL_PS_PROGRAM_UNIT (0x4)
|
||||
|
||||
/* Internal Trusted Storage (ITS) Service definitions
|
||||
* Note: Further documentation of these definitions can be found in the
|
||||
|
@ -144,19 +144,19 @@
|
|||
* allocated in the external flash just for development platforms that don't
|
||||
* have internal flash available.
|
||||
*/
|
||||
#define ITS_FLASH_DEV_NAME Driver_FLASH0
|
||||
#define TFM_HAL_ITS_FLASH_DRIVER Driver_FLASH0
|
||||
|
||||
/* In this target the CMSIS driver requires only the offset from the base
|
||||
* address instead of the full memory address.
|
||||
*/
|
||||
#define ITS_FLASH_AREA_ADDR FLASH_ITS_AREA_OFFSET
|
||||
#define TFM_HAL_ITS_FLASH_AREA_ADDR FLASH_ITS_AREA_OFFSET
|
||||
/* Dedicated flash area for ITS */
|
||||
#define ITS_FLASH_AREA_SIZE FLASH_ITS_AREA_SIZE
|
||||
#define TFM_HAL_ITS_FLASH_AREA_SIZE FLASH_ITS_AREA_SIZE
|
||||
#define ITS_SECTOR_SIZE FLASH_AREA_IMAGE_SECTOR_SIZE
|
||||
/* Number of ITS_SECTOR_SIZE per block */
|
||||
#define ITS_SECTORS_PER_BLOCK (0x1)
|
||||
#define TFM_HAL_ITS_SECTORS_PER_BLOCK (0x1)
|
||||
/* Specifies the smallest flash programmable unit in bytes */
|
||||
#define ITS_FLASH_PROGRAM_UNIT (0x4)
|
||||
#define TFM_HAL_ITS_PROGRAM_UNIT (0x4)
|
||||
|
||||
/* NV Counters definitions */
|
||||
#define TFM_NV_COUNTERS_AREA_ADDR FLASH_NV_COUNTERS_AREA_OFFSET
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue