How to flash Freertos using S32 in MPC5748G?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to flash Freertos using S32 in MPC5748G?

ソリューションへジャンプ
3,533件の閲覧回数
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,377件の閲覧回数
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,377件の閲覧回数
tiju
Contributor II

Hi Martin,

Thanks for the help. It works for me.

Thanks and Regards,

Tiju

0 件の賞賛
2,377件の閲覧回数
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,377件の閲覧回数
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,377件の閲覧回数
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,377件の閲覧回数
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,377件の閲覧回数
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,377件の閲覧回数
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,377件の閲覧回数
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,378件の閲覧回数
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,377件の閲覧回数
martin_kovar
NXP Employee
NXP Employee

Hello Rares,

thanks for clarification.

Regards,

Martin

0 件の賞賛