dynamic memory allocation in MPC5744P

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

dynamic memory allocation in MPC5744P

2,140 次查看
mayurbankhele
Contributor I

Hi All, 

We are using MPC5744P controller.

We want to implement the dynamic memory allocation.

To allocate memory at the run time what masking bit we have to set, which register we have to use.

We are not sure about it.

Can we get the sample application or example set how to set the dynamic memory allocation in CMPU and SMPU.

 

Regards,

Mayur Bankhele

标签 (1)
0 项奖励
回复
3 回复数

1,963 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

could you please clarify, which IDE you use?

Neither CMPU nor SMPU are related to dynamic memory allocation. This is the function of compiler. Please look at the functions malloc and free in C language.

Regards,

Martin

0 项奖励
回复

1,963 次查看
mayurbankhele
Contributor I

Hi,

We want to know about the resister setting of  SMPU_CESR0, SMPU_CESR1,  SMPU_RGDn_WORD2 at the time of dynamic memory allocation. We want to restrict the access for protected region. or any sample application used for same.

Regards,

Mayur Bankhele

0 项奖励
回复

1,963 次查看
martin_kovar
NXP Employee
NXP Employee

Hi,

please look at the following example:

Example MPC5748G SMPU initialization

This example is created for MPC5748G, but SMPU module is nearly the same as in MPC5744P.

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

Regards,

Martin

0 项奖励
回复