2006-06-27 04:16 AM
2006-06-27 04:16 AM
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