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

Scatter File setup - LPC2478 - Olimex board

Hello,

I'm using the Olimex LPC2478 development board (also known as the IAR board) and I'm having problems debugging out of external sdram.

What I would like to do is setup a debugger initialization file and a scatter file so that all my code is copied to the external sdram except the ARM vector table which would be copied to iram.

I've tried several different approaches but I just can't get it right.

Any help would be greatly appreciated.

Here is my scatter file as of now:

LR_IROM1 0x40000000 0x00010000  {    ; load region size_region
  ER_IROM1 0x40000000 0x00010000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
}
  RW_RAM1 0xA1000000 0x02000000  {  ; RW data
   .ANY (+RW +ZI)
  }
  RW_IRAM2 0x7FE00000 UNINIT 0x00004000  {
    LPC24_EMAC.o (+ZI +RW)
  }
}

LR_ROM1 0xA0000000 0x01000000  {
  ER_ROM1 0xA0000000 0x01000000  {  ; load address = execution address
   .ANY (+RO)
  }
}

0