We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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..
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