MPC5748g allocate variables to RAM

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC5748g allocate variables to RAM

162 Views
jiajian_qiu
Contributor II

Hi:

      I want to assign variables to RAM, and I know use the way as below:(MPC5748G on Power PC V1.2)

      uint32_t __attribute__ ((section(".data"))) var = 0;

      

      But now I have a lot of variables , so how ‘’__attribute__ ’ all variables at once, Thanks.

      Best regards.

Tags (2)
0 Kudos
1 Reply

107 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

unfortunately, there is no way, how to place variables in RAM together. Only possibility is add __attribute__ to every single variable. I know, this is not comfort way, unfortunately this is only way.

Sorry for any inconvenience.

Regards,

Martin

0 Kudos