at25_main.c is probably not such a good example:  It writes a hex file to
AT25 FLASH and the ROM bootloader will boot from the AT25 on the next reset.

boards/arm/sama5d4-ek/src/dram_main.c is another little bootloader:  It
loads a hex file from serial in SDRAM and executes it.  You need to load
from an SD card, not serial.

On Tue, Dec 15, 2020 at 11:09 AM Gregory Nutt <spudan...@gmail.com> wrote:

> You might have to write a tiny bootloader.  For example like
> boards/arm/sama5d4-ek/src/at25_main.c that boots from AT35 serial FLASH
> on a SAMA5D4 board.
>
> On 12/15/2020 10:55 AM, Вадим Ястребов wrote:
> > Hello,
> >
> > I am trying to create a bootable image using Secure Provisioning Tools
> by NXP to boot NuttX from SD Card. I would like to have everything copied
> to internal RAM. I am using flash.ld from nsh configuration for RT1060
> where I changed every section to reside in sram.
> >
> > Secure Provisioning Tools program is showing me that the starting
> address is 0x20202000 which sounds about right according to manual.
> Unfortunately, after flashing, NuttX doesn’t boot (no LEDs blinkinging,
> nothing).
> >
> > I have a working blinky LED example from MCUXpresso which boots from the
> SDCard.
> > Also, I have working NuttX which boots off the internal flash.
> >
> > Does anyone have any suggestions on how this can be achieved?
> > Also, do I need the .boot_hdr section in the NuttX linker script? I am
> asking because I am not planning to boot from QSPI flash.
> >
> > Thank you for your time!
> >
> > Regards,
> > Vadim Yastrebov
> >
> >
>
>
>

Reply via email to