This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error 65

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..

Parents
  • 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.

Reply
  • 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.

Children