FreeRTOS compilation failure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeRTOS compilation failure

827 Views
sushmasan
Contributor II

Hello Team,

I am trying to build FreeRTOS module using MCUXpresso IDE, but the build is failing.

All the respective header files exist in the stack. The header file path is set in the includes.

"portmacrocommon.h" is already present in this path "freertos\freertos-kernel\portable\GCC\ARM_CM33_NTZ\non_secure"

Please find the snapshots below for your reference.

Can someone please let us know, what is still missing?

sushmasan_0-1727966030283.png

sushmasan_1-1727966082411.png

 

0 Kudos
Reply
9 Replies

590 Views
sushmasan
Contributor II

Finally, I was able to compile the FreeRTOS component.

0 Kudos
Reply

775 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @sushmasan 

Sometimes, using relative paths can cause issues. As a test, try adding the absolute path to the non_secure folder containing portmacrocommon.h directly in your project settings to rule out any issues with relative paths.

If your problem has not been resolved, can you share your project?

BR

Hang

0 Kudos
Reply

762 Views
sushmasan
Contributor II

Hi @Harry_Zhang ,

I set the complete the filesystem path, but still I am getting the same error.

Please find the attached my project.

Regards,

San

0 Kudos
Reply

741 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @sushmasan 

I import your project into my MCUXpresso IDE, and i haven't made any changes,

I compiled without any errors.

HangZhang_0-1728546445413.png

So I suggest you delete this workspace and create a new one.

BR

Hang

0 Kudos
Reply

731 Views
sushmasan
Contributor II

Hi @Harry_Zhang ,

I am seeing few changes in your code, but you mentioned my workspace was directly imported and built without any issues.

Can you please share the workspace you created just to make sure?

One more thing, while creating the workspace for FreeRTOS, what are all the components you picked from SDK, in order to build it without errors?

Regards,
San

0 Kudos
Reply

668 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @sushmasan 

I mean that change the MCUxpresso workspace, not the workspace for FreeRTOS.

When you open the MCUXpresso, It will prompt you to choose a workspace.

HangZhang_0-1728700389450.png

You can create a new workspace.

BR

Hang

0 Kudos
Reply

787 Views
andrewsglenn
Contributor III

What happens if you set the path in the Includes tab of "Properties->C/C++ General->Paths and Symbols" ?

0 Kudos
Reply

762 Views
sushmasan
Contributor II
Even after setting the path in this location, still there is no change in the behavior, I am getting the same error.
0 Kudos
Reply

803 Views
sushmasan
Contributor II

Hello Team,

Can someone please check this error?

Regards,

San

0 Kudos
Reply