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

Code read protection xith Realview

Hi all,

I'm trying to enable the code read protection an an LPC2292. Therefore I followed the article http://www.keil.com/support/docs/3237.htm

I get the error message:
"L6291E: Base address 0x000001fc lies in the previous exec region or before the start of the load region"

Has anybody experienced the same?
Marco

"scatter file":

LR_IROM1 0x00000000 0x00040000  {    ; load region size_region
  ER_IROM1 0x00000000 0x00040000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (*)
  }
  CRP 0x1FC FIXED 4 {
    crp.o (*)
  }
  RW_RAM1 0x81000000 0x00100000  {  ; RW data
   .ANY (+RW +ZI)
  }
  RW_IRAM1 0x40000000 0x00004000  {
    ExtFlash.o (+RO +ZI +RW)
    FlashBoot.o (+RO +ZI +RW)
    IHex.o (+RO +ZI +RW)
    Flash_LPC2.o (+RO +ZI +RW)
   .ANY (+RW +ZI)
  }
}

Module "Crp.c":

#pragma push
#pragma Ono_remove_unused_constdata
unsigned int const Security_Value = 0x87654321;
#pragma pop