2024-11-11 2:01 PM
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
Solved! Go to Solution.
2024-11-19 4:51 AM
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
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-11-12 1:21 AM
Hello @hakeila
Could you please share your IOC in order to push further the investigation.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-11-12 11:12 AM
Hi @Ghofrane GSOURI ,
Thank you so much for your quick reply. I will send the IOC to you in a private message.
Cheers,
Hani
2024-11-19 1:46 AM
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
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-11-19 4:51 AM
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
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.