Introduction
This example demonstrates the use of HSM services.
Three services are available.
- UID is a unique identifier for each device. It can be extracted using get uid service.
- HSM get version service serves the client with TIFS-MCU version information.
- HSM set firewall service is used to configure MPU firewall regions.
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0_0 nortos |
Toolchain | ti-arm-clang |
Boards | am263px-cc |
Example folder | /examples/hsm_client/hsm_services/ |
Steps to Run the Example
Sample output
On successful boot, following message will be seen on terminal.
[HSM_CLIENT] New Client Registered with Client Id = 0
Starting OSPI Bootloader ...
[BOOTLOADER_PROFILE] Boot Media : NOR SPI FLASH
[BOOTLOADER_PROFILE] Boot Media Clock : 133.333 MHz
[BOOTLOADER_PROFILE] Boot Image Size : 28 KB
[BOOTLOADER_PROFILE] Cores present :
r5f0-1
r5f0-0
[BOOTLOADER PROFILE] System_init : 259us
[BOOTLOADER PROFILE] Drivers_open : 91us
[BOOTLOADER PROFILE] LoadHsmRtFw : 13410us
[BOOTLOADER PROFILE] Board_driversOpen : 62013us
[BOOTLOADER PROFILE] CPU load : 818us
[BOOTLOADER_PROFILE] SBL Total Time Taken : 76597us
Image loading done, switching to application ...
[HSM_CLIENT] New Client Registered with Client Id = 2
Enabling the interrupt for both address violation and protection violation for MPU_R5SS0_CORE1_AHB
Firewall request #1 status = 11111111 11111111
Permissions for peripheral region(0x5230 0000 - 0x5230 03FF) are revoked for R5FSS0_1
[HSM_CLIENT] New Client Registered with Client Id = 2
Interrupt registeration successful, notifying remote core to read CSL_UART0_U_BASE register
Success