[U-Boot] [PATCH v2 3/7] stm32: stm32f7: add spl build support

Robert Nelson robertcnelson at gmail.com
Thu Aug 10 18:03:47 UTC 2017


Hi Vikas,

On Sun, May 28, 2017 at 2:55 PM, Vikas Manocha <vikas.manocha at st.com> wrote:
> This commit supports booting from stm32 internal nor flash. spl U-Boot
> initializes the sdram memory, copies next image (e.g. standard U-Boot)
> to sdram & then jumps to entry point.
>
> Here are the flash memory addresses for U-Boot-spl & standard U-Boot:
>         - spl U-Boot            : 0x0800_0000
>         - standard U-Boot       : 0x0800_8000

Is there another patchset missing on mainline for booting via spl?

on mainline with the stm32f746-disco board:

U-Boot SPL 2017.09-rc1-00177-gd529124fdc (Aug 10 2017 - 12:33:35)
Trying to boot from XIP
Hard fault
pc : 08008008    lr : 08000adb    xPSR : 21000000
r12 : 2004f338   r3 : 00000005    r2 : 081c0000
r1 : ffffff9a    r0 : 00000000
Resetting CPU ...

resetting ...

I'm using openocd to program

openocd -f board/stm32f7discovery.cfg \
  -c "init" \
  -c "reset init" \
  -c "flash probe 0" \
  -c "flash write_image erase ./spl/u-boot-spl.bin 0x08000000" \
  -c "flash write_image erase ./u-boot.img 0x08008000" \
  -c "reset run" \
  -c "shutdown"

Regards,

-- 
Robert Nelson
https://rcn-ee.com/


More information about the U-Boot mailing list