STM32CubeU5 TFM example

STM32U5 Trusted Firmware M tests firmware package example

avhsupport avatar
Written by avhsupport
Updated over a week ago

STM32U5 Trusted Firmware M tests firmware package example.

For this example the kernel component in the firmware package is itself a ZIP archive, containing various binaries and `load.txt` file describing their location in memory:

name:tfm_s_init.bin load:0xc024000
name:tfm_ns_init.bin load:0xc052000
name:loader.bin load:0xc1fa000
name:TFM_SBSFU_Boot.bin load:0xc002000

Creating your device

  1. Log in to AVH with your Arm user account.
    https://avh.arm.com/ If you do not have or need to create an Arm account register at https://developer.arm.com/

  2. When logged in you land on the AVH Devices page. Click "CREATE DEVICE".

  3. Click on the "STM32U5 IoT Discovery Kit" to select it. Then click "NEXT".
    Please note you require 1 free CPU core to build this device or it will be disabled.

  4. In this next step, you'll see a list of pre-configured examples/stock firmware or you can upload your own custom firmware. In this example, we will use the selection STM32U5-TFM (1.1.0) in the stock firmware section.

  5. Click "SELECT".

  6. In the confirmation screen, click "CREATE DEVICE" using the default name and the advance boot options will be checked by default.

  7. In the advanced boot options, we will just use the default. Click "CREATE DEVICE".

  8. The device will then be created. It takes a few moments...

  9. Your STM32U5 IoT Discovery Kit is now ready to go!


    Running the example

  10. Click on "CONSOLE".

  11. There is a console menu to run various tests using Trusted Firmware. For example type 2 (Test TFM) followed by return.
    Note: You may see Invalid Number ! also menus printed twice this is because the device is interpreting the return keypress as a number. Please ignore this.

  12. Then type 0 (`TFM - Test All`) followed by return. to start tests.
    Note: You may need to scroll up to see all of the menu.

  13. You will be able to observe the result in the Console by scrolling up.

Next steps

Other STM32U5 IoT Discovery Kit examples;

Did this answer your question?