AnsweredAssumed Answered

Relocating Data in Internal RAM

Question asked by MAKARAND PHADKE on Oct 3, 2016
Latest reply on Oct 6, 2016 by Martin Kovar

New RAM Section "myCodeInRAM" is created in the ram and i am  able to assign specific object to this memory section with below code.

#pragma section  ".myCodeInRAM" data_mode=far_abs __declspec(section ".myCodeInRAM") unsigned char data0;

Now i have Number of variables which need to be assigned to this section. Is there a mechanism by which i can avoid specifying  __declspec(section ".myCodeInRAM") as prefix for every variable?