dynamic memory allocation in MPC5744P

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

dynamic memory allocation in MPC5744P

960 Views
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

Labels (1)
0 Kudos
3 Replies

783 Views
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 Kudos

783 Views
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 Kudos

783 Views
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 Kudos