stm32f4 bsp flash address

Juan Solano jsm at jsolano.com
Fri Jan 22 08:00:44 UTC 2021


Thanks Andrei,

I thought 0x08000000 was common across all F4s.

Rgds,
Juan.

On Thu, 21 Jan 2021, at 10:41 PM, Mr. Andrei Chichak wrote:
> Hi Juan,
> 
> On the original stm32f4 board for this BSP (STM32F407 on a STMF4 
> Discovery board), the FLASH memory resides at 0x0.
> 
> I have a BSP for STM32F767 and its FLASH is located at 0x0800 0000 as 
> you have in the 429. It works.
> 
> Andrei
> 
> > On 2021-January-21, at 14:02, Juan Solano <jsm at jsolano.com> wrote:
> > 
> > Hi all,
> > 
> > I had to update the flash address of the linker script to be able to use the stm32f4 bsp with my Nucleo board (stm32f429zi). Flash resides at 0x08000000, and it is aliased also at 0x0. I made it work with my gdb environment just by changing the ROM address to the actual flash address in the chip.
> > 
> > We can always use tools that flash it at the correct location, independently of what the linker script says, but Is there a reason why in RTEMS the 0x0 address is used?
> > 
> > --- a/c/src/lib/libbsp/arm/stm32f4/startup/linkcmds.stm32f4
> > +++ b/c/src/lib/libbsp/arm/stm32f4/startup/linkcmds.stm32f4
> > @@ -1,6 +1,6 @@
> > MEMORY {
> >       RAM_INT : ORIGIN = 0x20000000, LENGTH = 128k
> > -       ROM_INT : ORIGIN = 0x00000000, LENGTH = 1M
> > +       ROM_INT : ORIGIN = 0x08000000, LENGTH = 1M
> > 
> > Thanks,
> > Juan.
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
> 
> 
>


More information about the devel mailing list