cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS code generation for non-secure STM32H5

hakeila
Associate II

Hi,

I am using STM32CubeMX 6.12.1 to generate a C-based firmware that depends on FreeRTOS. I enabled TrustZone and I have configuration for secure and non-secure part of the firmware.

 

Everytime, I re-generate the code, the Secure project config is setup with incorrect path to RTOS2. This folder should reside in Secure_Project/Middlewares/RTOS2 and not in Secure_Project/RTOS2.

Also, in the non-secure project, I would have freertos.h and tasks.h included in stm32h5xx_it.c under Core/Src. I know from the CubeMX that the FreeRTOS can only be included in the secure region and not permitted in the non-secure. However, the CubeMX always insert these inclusion under the non-secure project Core for some reason

 

Kind Regards,

Hani

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello again @hakeila 

Concerning the second issue :   freertos.h and tasks.h included in stm32h5xx_it.c

The development team has been notified of this issue and it has been escalated for fixing.

Internal ticket number :196567(This is an internal tracking number and is not accessible or usable by customers).

I will keep you posted with updates.

THX

Ghofrane

View solution in original post

4 REPLIES 4
Ghofrane GSOURI
ST Employee

Hello @hakeila 

Could you please share your IOC in order to push further the investigation.

THX

Ghofrane

Hi  @Ghofrane GSOURI ,

 

Thank you so much for your quick reply. I will send the IOC to you in a private message.

 

Cheers,

Hani

Hello @hakeila 

 You mentioned that the generated path for RTOS2 in the Secure project is incorrect but after using your IOC and generating the code: it is indeed located  at  Secure_Project/Middlewares/RTOS2

GhofraneGSOURI_0-1732009203653.png

 

Hello again @hakeila 

Concerning the second issue :   freertos.h and tasks.h included in stm32h5xx_it.c

The development team has been notified of this issue and it has been escalated for fixing.

Internal ticket number :196567(This is an internal tracking number and is not accessible or usable by customers).

I will keep you posted with updates.

THX

Ghofrane