cancel
Showing results for 
Search instead for 
Did you mean: 

TFM-Loader In STM32U585

HirenThumar2702
Associate III

Greetings, supportTeam

Enjoy your day.

I am developing a procedure for updating the firmware.

For this procedure, I'm using TFM-Boot and TFM-Loader. In TFM Loader, I've included several features like image validation and re-install image functionality.

However, I've had various magic num-related errors. When i execute re-install image and validation of image

Please give me advice on how to solve this problem as I have also included a screenshot of the log file.

Thanks

Hiren R. Thumar

 

2 REPLIES 2
Mohamed Aymen HZAMI
ST Employee

Hello @HirenThumar2702 and welcome to the community,

Did you try the TFM firmware example ?

You can refer to this post, can help!

Aymen

 

Hi Aymen,
Good morning Have a nice day.
I'm using TFM-boot, TFM-Loader, and TFM-Application for firmware upgrades. I activated swap mode and double-checked that everything was functioning correctly. but i replaced TFM-Application with our created Application

As per our requirement, we require TFM-Boot, TFM-Loader and jump to our created application

below I mention the steps.
I've included the steps I take to integrate my own application below.
1. Create Project Name: Application[Enable TrustZone]
2. Change the .ld file of the secure and non-secure project[output.ld - added prebuild file in secure and non-secure project properties]
3. Change linker path in secure and non-secure project properties
4. Added Postbuild. sh in own application repo
5. Update NS address in secure-> main.c "#define VTOR_TABLE_NS_START_ADDR NS_CODE_START"
6. Added post-build. sh path in secure and non-secure project properties
7. Successful compile code
8. Generate sign with encrypted .bin file in Binary folder
9. Go to the local bootloader with a reset
10. Upload encrypted sign .bin through SBSFU_Loader
11. Reset Trigger

Outcome:

i am not able to successfully integrate our application. 

LOG:
[INF] signature OK
[INF] Bootloader chain load address offset: 0x1a000
[INF] Jumping to the first image slot

so could you please advise me on how to integrate our project with TFM_Boot and TFM_Loader?
I attached our code and TFM_Boot Flash layout in this mail chain so can you provide me with the project file with the needed changes?

Thanks

Hiren R. Thumar