cancel
Showing results for 
Search instead for 
Did you mean: 

Using FreeRTOS with TrustZone in STM32CubeIDE - STM32L562

FHumb.1
Associate II

I have a development kit for the STM32L562, I'm trying to create a blinky-script that will use FreeRTOS to blink a led in the secure-world and the non-secure world simultaneously.

Steps to reproduce:

  • Install STM32CubeIDE 1.3.0
  • New STM32 Project
  • Look for the board that matches l562 in the search bar
  • Create project
  • Set project name
  • Set targeted language to c++
  • check "Enable TrustZone"
  • click finish
  • Click yes to both popups

Once the project is loaded, the following configuration needs to be done in the "projectname.ioc" :

  • Go to Middleware->FreeRTOS
  • Select "interface: CMSIS_V2"
  • save the configuration
  • generate the device configuration code
  • Right click "projectname_Secure" project and click on "build project"

You should now be getting errors about "FreeRTOS.h" not being found by several files.

If you add '/projectname/Middlewares/Third_Party/FreeRTOS/Source/include' to your include paths, you should no longer be getting the not found error, but should be getting multiple definition errors.

Does anyone know what I'm doing wrong?

Thanks in advance!

10 REPLIES 10

​Hi @CGuil.1​ 

Sorry the release has been delayed to W30/31.

Best Regards,

Khouloud