AM263x MCU+ SDK  08.05.00
HSM Services Example

Introduction

This example demonstrates the use of HSM services.

Two services are available.

  1. UID is a unique identifier for each device. It can be extracted using get_uid service.
  2. HSM get_version_service serves the client with TIFS-MCU version information.

Supported Combinations

Parameter Value
CPU + OS r5fss0_0 nortos
Toolchain ti-arm-clang
Boards am263x-cc
Example folder /examples/hsm_client/hsm_services/

Steps to Run the Example

Via SBL_qspi bootloader

Build sbl_qspi

cd ~/ti/mcu_plus_sdk
make -s -C examples/drivers/boot/sbl_qspi/am263x-cc/r5fss0-0_nortos/ti-arm-clang/ all DEVICE=am263x

Build sbl_uart_uniflash

cd ~/ti/mcu_plus_sdk
make -s -C examples/drivers/boot/sbl_uart_uniflash/am263x-cc/r5fss0-0_nortos/ti-arm-clang/ all DEVICE=am263x

Edit default_sbl_qspi.cfg to include the correct images

  • Example config file.
#-----------------------------------------------------------------------------#
# #
# DEFAULT CONFIGURATION FILE TO BE USED WITH THE FLASHWRITER SCRIPT #
# #
#-----------------------------------------------------------------------------#
#
# By default this config file,
# - points to pre-built flash writer, bootloader for this EVM
# - The application image points to relative path of the ipc echo application image for this EVM
# - Make sure this application is built before running this script
# - You can customized this config file to point to your own bootloader and/or application images
# - You can use --operation=flashverify if you just want to verify the flash contents and not flash the file.
#
# First point to sbl_uart_uniflash binary, which function's as a server to flash one or more files
--flash-writer=sbl_prebuilt/am263x-cc/sbl_uart_uniflash.release.tiimage
# Now send one or more files to flash or flashverify as needed. The order of sending files does not matter
# When sending bootloader make sure to flash at offset 0x0. ROM expects bootloader at offset 0x0
--file=sbl_prebuilt/am263x-cc/sbl_qspi.release.tiimage --operation=flash --flash-offset=0x0
# When sending application image, make sure to flash at offset 0x80000 (default) or to whatever offset your bootloader is configured for
--file=../../examples/drivers/hsmclient/hsm_services/am263x-cc/r5fss0-0_nortos/ti-arm-clang/hsm_services.release.appimage --operation=flash --flash-offset=0x80000

Sample output

On successful boot, following message will be seen on terminal.

Services Sample Output

Set board for UART boot

See EVM setup

Load image

Power cycle and load image via xmodem (teraterm/minicom, baud rate 115200bps)

Sample Output

On successful boot, following message will be seen on terminal. Please note that the R5F application has not been side-loaded yet.

Sample Output