How to flash Freertos using S32 in MPC5748G?

cancel
Showing results for 
Search instead for 
Did you mean: 

How to flash Freertos using S32 in MPC5748G?

Jump to solution
1,281 Views
Contributor II

After creating a Freertos project, I am only able to run it from RAM. How can I flash it in MPC5748G?

pastedImage_1.png

Thanks and Regards,

Tiju

Labels (1)
0 Kudos
1 Solution
125 Views
NXP Employee
NXP Employee

Hi,

In 0.8.0 EAR FreeRTOS was supported only in RAM configuration. This is why the project is not retained in memory after reset.

Fortunately, FreeRTOS is supported in flash target starting from 0.8.1 release.

Thanks,

Rares

View solution in original post

10 Replies
125 Views
Contributor II

Hi Martin,

Thanks for the help. It works for me.

Thanks and Regards,

Tiju

0 Kudos
125 Views
Contributor II

Hi Tiju,

Can you tell me how to port FreeRTOS to MPC5748G?

The MPC5748G have three cores,should i have to create three project to port FreeRTOS?

I only have this source that NXP.com provide捕获.PNG

Please tell me the transplanting steps in detail,thank you! 

0 Kudos
125 Views
NXP Employee
NXP Employee

Hello,

FreeRTOS is single core operating system. Please use the FreeRTOS port which is part of SDK as Jiri Kral adviced you in the thread below.

https://community.nxp.com/thread/459495 

Regards,

Martin

0 Kudos
125 Views
Contributor II

Hi Martin,

Thanks for your reply!

You can call me Tim.

I want to know if i intend to create different tasks and  let them operate in different cores,is it feasible?

Thanks and Regards,

0 Kudos
125 Views
NXP Employee
NXP Employee

Hello,

unfortunately, this is not possible. You can create tasks only at the same core, which executes operating system.

Regards,

Martin

0 Kudos
125 Views
NXP Employee
NXP Employee

Hello,

by default, for FreeRTOS is available RAM Target only. But it is possible to create new configuration for FLASH memory.

Please do the procedure below:

1) Open link S32SDK EAR 0.8.0 Linker Update and download edited linker files.

2) Create FreeRTOS project from example and replace old flash linker file with new one.

3) Open Project properties and click C/C++ Build ->Manage Configurations

pastedImage_3.png

4) Click New, insert Name (for example debug_conf) and choose Import from projects. In this window, choose freertos_mpc5748g > Debug_RAM and click OK.

pastedImage_4.png

5) Set this new configuration as active.

6) Click C/C++ Build -> Settings, Click General and change path to linker file. Linker file for flash has to be used.

pastedImage_5.png

7) Compile project with the new configuration.

If you have any other questions, please feel free to write me back.

Regards,

Martin

125 Views
Contributor II

Hi Martin,

How can i debug the project using the flash configuration,every time i push the reset button,it always return to the previous project which i debugged.

Regards

0 Kudos
125 Views
NXP Employee
NXP Employee

Hello,

could you please clarify your question? Which reset button you mean?

What does it mean you debug previous project?

Regards,

Martin

0 Kudos
126 Views
NXP Employee
NXP Employee

Hi,

In 0.8.0 EAR FreeRTOS was supported only in RAM configuration. This is why the project is not retained in memory after reset.

Fortunately, FreeRTOS is supported in flash target starting from 0.8.1 release.

Thanks,

Rares

View solution in original post

125 Views
NXP Employee
NXP Employee

Hello Rares,

thanks for clarification.

Regards,

Martin

0 Kudos