AnsweredAssumed Answered


Question asked by Gaetano Anania on May 29, 2014
Latest reply on May 30, 2014 by Gaetano Anania

Hi all,

I am working with TWR K70. I would need to use the external SRAM (ext RAM of the tower) like the internal RAM  to allocate variables without direct addressing.

I mean I want to define a macro (#define XDATA) that allocates the variable in exeternal RAM.

At moment I allocate the variable in a specific address of external RAM



where ADDR1 and ADDR2 are calculated before to avoid overwritten.


I want to have the below situation:

(maybe it need previous section define in *.lcf file)


#define ADDRESSING   ...something...


int ADDRESSING test1;

float ADDRESSING test2;


so the variable will be allocated in external RAM "automatically".

Is it possible to do it?


Thanks in advance.