Skip to main content
Visitor II
March 20, 2008
Question

splitting code in two parts using the scatter file

  • March 20, 2008
  • 3 replies
  • 1045 views
Posted on March 20, 2008 at 02:05

splitting code in two parts using the scatter file

    This topic has been closed for replies.

    3 replies

    Visitor II
    June 22, 2006
    Posted on June 22, 2006 at 07:38

    Hello,

    I want to load and execute my program in bank0 and bank1 of internal flash. Some files must be copied in bank0 and some files in bank1.

    For this I must split code in two parts using the scatter file.

    Did somebody already do that?

    Thanks

    Visitor II
    June 28, 2006
    Posted on June 28, 2006 at 04:06

    It doesn't function. The compiler returns an error message.

    Here is the scatter file:

    BANK0 0x40000000 ; for bank0 of flash

    {

    FLASH_B0 0x40000000

    {

    71x_vect.o (Vect, +First)

    71x_init.o (Init)

    * (+RO)

    }

    RAM_0 0x20000000

    {

    * (+RW)

    * (+ZI)

    }

    }

    BANK1 0x400C0000 ; for bank1 of flash

    {

    FLASH_B1 0x400C0000

    {

    flash_prog.o (+RO) ; code of flash_prog file

    }

    RAM_1 0x20008000

    {

    flash_prog.o (+RW,+ZI) ; data of flash_prog file

    }

    }

    Here is the error message:

    Error S0025 (Server): Unable to write memory at specified addr while Loading File.

    Failed loading 'P:\Gestion Flash Memory SPI\Update STR710 - 28juin 7h10 - soft courant\Debug\soft_duj.axf'

    Flash opened on ARM7TDMI_0:ARM-ARM-USB for 'STARM71xF On-Chip Flash' at '0x40000000'

    Error: Flash already opened at 0x400C0000 - only one allowed

    Error: Unable to write Program memory at 0x400C0000

    Error S003B (Server): Failed opening/reading Flash method file

    Visitor II
    March 20, 2008
    Posted on March 20, 2008 at 02:05

    Does anyone know how to fix those two errors, S0025 and S003B?