How to Manually add this FreeRTOS package into IAR workbench with only ARM_Cortex M33 CMSIS files?

Hi Team,

We are writing driver files for one of our chip developed which is based on ARM_Cortex M33 processor so we want to setup a project where we are creating the base code for this chip with only ARM_Cortex M33 CMSIS files and FreeRTOS package in IAR workbench so can we manually add this freeRTOS package in IAR??

Any suggestion will be helpful…

Thanks
Pratiksha

If you are asking which FreeRTOS files to compile for Cortex-M33, this page has all the details - Using FreeRTOS on ARMv8-M Microcontrollers - FreeRTOS™.

If you are asking how to add a source file to an IAR project, this user guide provides details about that - https://wwwfiles.iar.com/m32c/guides/EWM32C_UserGuide.pdf.

1 Like

Hi @aggarg

Thank you for your information provided…

I going through this 1st link provided by you but not able to find the code example for freertos using IAR. Please can you help me with this??

Thanks
Pratiksha

TrustZone example using IAR - FreeRTOS/FreeRTOS/Demo/CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso/Projects/IAR at main · FreeRTOS/FreeRTOS · GitHub.

Non-TrustZone example using IAR - FreeRTOS/FreeRTOS/Demo/CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso/Projects_NTZ/IAR at main · FreeRTOS/FreeRTOS · GitHub.

Hi @aggarg

Thank you for sharing the project. I have gone through the project. But this project is based on secure and nonsecure functionality.I want to just create the base case with freertos package and ARM_M33 CMSIS files without any other driver files such as eg UART,I2C etc on IAR any suggestion will be helpful.

We are building the chip from the scratch so for that we need base code with freertos integrated with ARM_M33 CMSIS files…

Thanks
Pratiksha

This project does not use TrustZone (i.e. secure and non-secure) - FreeRTOS/FreeRTOS/Demo/CORTEX_MPU_M33F_NXP_LPC55S69_MCUXpresso/Projects_NTZ/IAR at main · FreeRTOS/FreeRTOS · GitHub.

Here is another M33 project that does not use trust zone - FreeRTOS/FreeRTOS/Demo/CORTEX_MPU_M33F_NTZ_Nordic_NRF9160_SES at main · FreeRTOS/FreeRTOS · GitHub.

You need to compile the following files -

Include the following directories to your include search path -

Hope that helps.

Hi @aggarg

Thank you for your response.

I am checking with your suggestion.I am not able to add my projects here.just wanted to share to understand the issue properly. can you help me on this??

Thanks
Pratiksha

You should now be able to.

Hi @aggarg

I tried to do but getting the error

Screenshot 2024-08-13 154315

Thanks
Pratiksha

Try logging out and logging in again. If that does not work, put your code somewhere in GitHubu and share the link.

Hi @aggarg

I am not able to share full project but I am sharing files used in the project. Please can you check at your end let me know what I am missing.
FreeRTOS version Is FreeRTOSv202212.01 and in that FreeRTOS folder files.

IDE is IAR workbench.

CMSIS.zip (105.5 KB)

Thanks
Pratiksha

These are bunch of header files and source files which are not even FreeRTOS. There is no project file. What do you want me to look at? Are you able to run bare metal code on your hardware without FreeRTOS?

Hi @aggarg

Correct I have not shared my full project but shared only ARM_CM33 files which is in CMSIS zip what I have shared.and freeRTOS is not added in this just for your info i have mentioned which files in freertos I am using.if you add this try to add these files in IAR and try to compile you get some errors.So I am concerned about that. I have uploaded the image for your reference.

Thanks
Pratiksha
freertos_project

Where did you get these files from? Did you get them from FreeRTOS repository?

Hi @aggarg

No these are not from freertos repo.

Thanks
Pratiksha

Then I’d recommend to reach out to the maintainers of these files to get the compilation issues addressed. I’d also suggest to get the bare metal application working first and then add FreeRTOS.