Hi,
I'm trying to locate a variable to an specific address. There are three ways to do this:
1) using options of the file that have the variable and config the RAM area 2) unsigned int cont __at (0x2000000); 3) #define cont (*((unsigned int *)(0x2000000)))
The first one, is too bad because is posible that I want to locate variables to diferents locations. The second one, is perfect for me, but when compiling the compiler generate a very big file from CODE area to RAM area even using a not init area. The third one, works perfect, but is not a standard way to do it.
How can I use __at tense without make a very big file?
My code are located at 0x1000000 and the data are at 0x2000000.
Thanks!!!
View all questions in Keil forum