cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with scatter file

julienduay
Associate II
Posted on June 27, 2006 at 13:16

Problem with scatter file

1 REPLY 1
julienduay
Associate II
Posted on June 27, 2006 at 13:16

I want to copy the functions of a file (read only code) in the bank1 of STR710 internal flash.

The internal variables of this file (read-write data) must be copied in the RAM of STR710.

For this I use this scatter file, but I can't modify the variables when the program is executed.

USER_MODE 0x40000000 0xC4000 ; for the internal Flash (bank0 and bank1)

{

FLASH 0x40000000 0x40000 ; for the bank0

{

71x_vect.o (Vect, +First)

71x_init.o (Init)

* (+RO)

}

FLASH_PROG 0x400C0000 0xC4000 ; for the bank1

{

flash_prog.o (+RO) ; copy functions (code) of flash_prog file in bank1

}

RAM 0x20000000 ; for the internal RAM

{

* (+RW)

* (+ZI)

flash_prog.o (+RW,+ZI) ; copy read-write variables (data) from flash_prog file in internal RAM

}

}

Thanks