Hello, I have this code
#include <LPC214x.h> #include "ARM_Eprom.h" #include "ARM_IAP.h" #define IAP_LOCATION 0x7ffffff1
const unsigned char eeprom[EE_SIZE] __at EE_ADDR_L;
when i compile this, I have an error Src\ARM_Eprom.c(22): error: #65: expected a ";"
where goes this ";" ? if this is the problem..
"....Do you have any other errors or warning before this one? If you do, fix them first?"
No i not ave any error and my line of code are seguent:
#include <LPC214x.h> #include "ARM_Eprom.h" #include "ARM_IAP.h"
#define IAP_LOCATION 0x7ffffff1
const unsigned char eeprom[EE_SIZE] __at EE_ADDR_L ;
... function declaration...
and the error is segnalated at line const unsigned char eeprom[EE_SIZE].....
And you have verified the values of the constants EE_SIZE and EE_ADDR_L, so that they have meaningful values for use in an at declaration?
Yes,
I have tried with... const unsigned char eeprom[0x1000] __at 0x0001f000;
but i have the same error
Did you read the link posted by Patrick Noonan on 17-May-2007 at 17:49:
http://www.keil.com/forum/docs/thread8677.asp
particularly the last two posts?
If you are using RV, it's is necessary to:
1) include absacc.h 2) put the address into parenthesis
Something like:
#include <absacc.h>
const char MyText[] __at (0x1F00) = "TEXT AT ADDRESS 0x1F00"; int x __at (0x40003000);
should work (I did it). You have this example in RV Compiler Introduction->Locate Variables to Specific Addresses.
Best regards.
wowwwwww now all work...
Thanks
So the solution was in http://www.keil.com/forum/docs/thread8677.asp all along, then?!
idioms.thefreedictionary.com/You can lead a horse to water