| Details | Message |
|---|
Read-Only Author gigi faz Posted 17-May-2007 15:56 GMT Toolset ARM |  error 65 gigi faz 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.. |
|
Read-Only Author Al Bradford Posted 17-May-2007 17:37 GMT Toolset ARM |  RE: error 65 Al Bradford Not enough information in your post. Are you using CARM or RealView? Click on the error message to see where the error was created. I suspect it is in one of your include files. Some of the older include files have code that is not compatible with RealView but will compile with CARM. Show the code line indicated by the error message. |
|
Read-Only Author Patrick Noonan Posted 17-May-2007 23:49 GMT Toolset ARM |  RE: error 65 Patrick Noonan http://www.keil.com/forum/docs/thread8677.asp |
|
Read-Only Author Andy Neil Posted 18-May-2007 08:06 GMT Toolset ARM |  RE: error 65 - presumably not CARM? Andy Neil "Not enough information in your post." True. "Are you using CARM or RealView?" Presumably not CARM, as the given message doesn't match the description in the CARM manual: http://www.keil.com/support/man/docs/ca/ca_c65.htm |
|
Read-Only Author gigi faz Posted 18-May-2007 08:24 GMT Toolset ARM |  RE: error 65 gigi faz ...Not enough information in your post. Are you using CARM or RealView? ... I'm using RealView, |
|
Read-Only Author Andy Neil Posted 18-May-2007 08:02 GMT Toolset ARM |  Check preceding text Andy Neil "where goes this ';' ? if this is the problem.." Very often, it is not the actual problem. Very often, the real problem is a typo or some undefined macro somewhere earlier - this causes the compiler to get confused, and the only way it can see to make sense of it is to assume that a semicolon has been missed somewhere... Do you have any other errors or warning before this one? If you do, fix them first. Otherwise, look carefully at the preceding lines - is everything correctly spelled? is the syntax correct? are all names (especially #defined ones) properly defined? Check out You need Andy's Handy Hint for Debugging Preprocessor Problems: http://www.8052.com/forum/read.phtml?id=29152 |
|
Read-Only Author gigi faz Posted 18-May-2007 08:39 GMT Toolset ARM |  RE: Check preceding text gigi faz "....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]..... |
|
Read-Only Author Per Westermark Posted 18-May-2007 09:00 GMT Toolset ARM |  RE: Check preceding text Per Westermark 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? |
|
Read-Only Author gigi faz Posted 18-May-2007 09:05 GMT Toolset ARM |  RE: Check preceding text gigi faz Yes, I have tried with... const unsigned char eeprom[0x1000] __at 0x0001f000; but i have the same error |
|
Read-Only Author Andy Neil Posted 18-May-2007 09:33 GMT Toolset ARM |  Answer already given? Andy Neil 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? |
|
Read-Only Author Natxo Piqueras Posted 18-May-2007 11:16 GMT Toolset ARM |  RE: Check preceding text Natxo Piqueras 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. |
|
Read-Only Author gigi fazio gigi Posted 18-May-2007 12:01 GMT Toolset ARM |  RE: Check preceding text gigi fazio gigi wowwwwww now all work... Thanks |
|
Read-Only Author Andy Neil Posted 18-May-2007 12:12 GMT Toolset ARM |  And now it works! Andy Neil So the solution was in http://www.keil.com/forum/docs/thread8677.asp all along, then?! |
|
Read-Only Author Patrick Noonan Posted 18-May-2007 12:42 GMT Toolset ARM |  RE: And now it works! Patrick Noonan http://idioms.thefreedictionary.com/You+can+lead+a+horse+to+water |
|