AnsweredAssumed Answered

How to moved variable to certain section of RAM memory

Question asked by Vikas Vikas on Dec 11, 2016
Latest reply on Dec 14, 2016 by Vikas Vikas

I want to know is  there in method to align the indivialial variable declared is such way that blow variable can be  moved

to some section of RAM memory,

 

I want align below variable to RAM memory section to 0x40005000

 

volatile real32_T Main_KD = 6.0F; RAM address = 0x40005000
volatile real32_T Main_KD_limit = 1.0F; RAM address = 0x40005004
volatile real32_T Main_KP1 = 4.0F; RAM address = 0x40005008
volatile real32_T Main_KP2 = 2.0F; RAM address = 0x4000500C
volatile real32_T Main_KP_conv1 = 0.15F;  so on
volatile real32_T Main_KP_conv2 = 1.0F;
volatile real32_T Main_Threshold_off = 1.0F;
volatile real32_T Main_Threshold_on = 2.0F;
volatile real32_T Main_deadbandA = 0.0F;
volatile real32_T Main_deadbandB = 0.0F;

Outcomes