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
int*test1=(int*)ADDR1;
float*test2=(float*)ADDR2;
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.
Gae