cancel
Showing results for 
Search instead for 
Did you mean: 

how to configure a mapping using scatter files using stm32f7 ?

elmzaiti youssef
Associate II
Posted on June 09, 2017 at 14:37

hello

  how to configure a mapping using scatter files using stm32f7 ? 

3 REPLIES 3
Nesrine M_O
Lead II
Posted on June 09, 2017 at 14:45

Hi

youssef.elmzaiti

,

Could you please provide more explanation on your case, so that it will be easier to understand the issue?

-Nesrine-

Posted on June 09, 2017 at 16:23

I guess you'd need to ask yourself why you needed them in the first place? Your use case is highly application specific and the question lacks salient context. Review the manuals to determine the available RAM and FLASH regions and expand and contract your allocations here based on the speed and sector sizes that most optimally address your use case.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 09, 2017 at 15:03

Hi

ELMHIRI.Syrine

we want to migrate from stm32f4 to stm32f7 , and so we should to modify the scatter file to configure the new mapping in stm32f7

#! armcc -E

; *************************************************************

; *** Scatter-Loading Description File generated by uVision ***

; *************************************************************

LR_IROM1 0x08004000 0x000BC000 { ; load region size_region

ER_IROM1 0x08004000 0x000BC000 { ; load address = execution address

*.o (RESET, +First)

*(InRoot$$Sections)

.ANY (+RO)

}

RW_RAM1 0x20000000 0x00004000 { ; RW data

tab_dsn.o (+ZI +RW)

.ANY (+RW +ZI)

}

#if ( defined STM2xx)

RW_RAM2 0x20004000 0x00000780 {

startup_stm32f2xx.o (+ZI +RW)

.ANY (+RW +ZI)

}

#elseif ( defined STM4xx)

RW_RAM2 0x20004000 0x00000780 {

startup_stm32f4xx.o (+ZI +RW)

.ANY (+RW +ZI)

}

#endif

RW_RAM3 0x20004780 0x00000100 {

.ANY (+RW +ZI)

}

RW_IRAM1 0x20004900 0x0000B700 {

.ANY (+RW +ZI)

}

RW_IRAM2 0x20004880 UNINIT 0x00000020 {

no_init.o (+ZI +RW)

.ANY (+RW +ZI)

}

}

LR_IROM2 0x080C0000 0x00040000 { ; Secteur 10 et 11 de la flash, pour stocker les noms de la base

ER_IROM2 0x080C0000 0x00040000 { ; load address = execution address

*(nom_base)

}

}