How to flash Freertos using S32 in MPC5748G?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to flash Freertos using S32 in MPC5748G?

跳至解决方案
3,792 次查看
tiju
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

标签 (1)
0 项奖励
回复
1 解答
2,636 次查看
raresvasile
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

在原帖中查看解决方案

10 回复数
2,636 次查看
tiju
Contributor II

Hi Martin,

Thanks for the help. It works for me.

Thanks and Regards,

Tiju

0 项奖励
回复
2,636 次查看
timwang
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 项奖励
回复
2,636 次查看
martin_kovar
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 项奖励
回复
2,636 次查看
timwang
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 项奖励
回复
2,636 次查看
martin_kovar
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 项奖励
回复
2,636 次查看
martin_kovar
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

2,636 次查看
timwang
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 项奖励
回复
2,636 次查看
martin_kovar
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 项奖励
回复
2,637 次查看
raresvasile
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

2,636 次查看
martin_kovar
NXP Employee
NXP Employee

Hello Rares,

thanks for clarification.

Regards,

Martin

0 项奖励
回复