This post was last edited by MianQi on 2021-3-19 10:43
I wanted to reproduce this tutorial before -
https://www.stmcu.com.cn/ecosystem/chip/chipfamily-STM32L5-4 ( STM32L5 Getting Started Course (IV) STM32CubeMX: Supporting TZ Applications ) It took a month, but in the end there was no result. This time I tried again and found a routine from the examples that come with STM32CubeIDE.
A few notes:
1. STM32CubeIDE's support for Windows obviously takes precedence over Linux. Specifically, the same example may not be supported in Linux, which is manifested by a reminder that the firmware cannot be loaded.
2. If the kernel is locked:
Cold booting the computer may solve the problem.
3. It is particularly important to note that the TrustZone project consists of two projects under one directory:
You cannot click on the top directory, otherwise the compile icon will be inactive. You need to select the two project folders below, and run (download) these two folders separately - this is probably the reason why it didn't work last time (https://en.eeworld.com/bbs/thread-1152694-1-1.html), because after downloading the first project, the board did not respond, and it worked after downloading the second one: