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 configuration difficulty

Hello,
When I configure uVision to use the memory layout from the target dialog, I manage to build without problem using these settings for internal flash:

IROM1 start 0x4000, size 0x80000.


But I need a scatter file - which is configured like this:

LR_IROM1 0x00000000 0x00080000  {    ; load region size_region
  ER_IROM1 0x04000 0x80000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
.
.

which yields the following error:

.\Obj\TXIRWEBS.axf: Error: L6202E: __main.o(!!!main) cannot be assigned to non-root region 'ER_IROM1'
.\Obj\TXIRWEBS.axf: Error: L6202E: anon$$obj.o(Region$$Table) cannot be assigned to non-root region 'ER_IROM1'

do you see where I'm wrong?

0