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

Arm7 V strange scatter file , LPC

Hi @all

I'm using RV 3.02a on a LPC2119

Using several memory areas cause strange settings in the scatter file:

In the options - target dialogbox I inserted following areas
ROM1 0x8300, 0x14000
ROM2 0x8200, 0x10
ROM3 0x8210, 0x30

RAM1 0x40000000, 0x3F80
RAM2 0x40003F80, 0x80, NoInit

In the linker-tab Use Memory Layout from Target Dialog is checked.
The linker control string shows is here:

*.o --strict --scatter ".\Flash\mmi_bet0.sct"
--map --xref --callgraph --symbols

The result in scatter file is like that:
( Watch the marked lines ...)

LR_ROM1 0x00008300 0x00014000  {  ; load region
  ER_ROM1 0x00008300  {       ; load address = execution address
   *.o (RESET, +First)
   * (+RO)
  }
  RW_ 0x004F4850 0x0111D6BD  {  ; RW data
   * (+RW +ZI)
  } 
  RW_RAM2 0x40003F80 UNINIT 0x00000080  {
    Fixdata1.o (+RW)
  }
}

LR_ROM2 0x00008200 0x00000010  {
  ER_ROM2 0x00008200  {       ; load address = execution address
    fw_flag.o (+RO)
  }
}
LR_ROM3 0x00008210 0x00000030  {
  ER_ROM3 0x00008210  {       ; load address = execution address
    version.o (+RO)
  }
}

Crasy is the line with the RW_ 0x004F4850 0x0111D6BD { ; RW data
...

What's wrong ?

I tried to delete the scatter file and rebuild a new fromout the UV3 but every time the same crasy (and wrong) area.

Running in debugger the application crashs in the startup code after startup.s and just before entering main()

Has someone idea ?
Thanks a lot.