Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Force certain preloader image at QSPI boot

I am using Altera DevKit with SOCEDS 14.0.

The system boots from QSPI where 2 preloader images

Is there way to force load from specified image?

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I am using Altera DevKit with SOCEDS 14.0.

    The system boots from QSPI where 2 preloader images

    Is there way to force load from specified image?

    --- Quote End ---

    Hi.

    From a power on reset the code will always attempt to load image 0. However there is a HW register in the system manager that allows a subsequent warm boot to choose any of the images to boot from.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi

    So my understanding is

    Boot 1st preloader from address 0, config hw register to set address of 2nd preloader, do warm reset. Is it correct?

    Is the register name ALT_SYSMGR_ROMHW?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi

    So my understanding is

    Boot 1st preloader from address 0, config hw register to set address of 2nd preloader, do warm reset. Is it correct?

    Is the register name ALT_SYSMGR_ROMHW?

    --- Quote End ---

    Hi.

    The register is ALT_SYSMGR_ROMCODE_INITSWLASTLD.

    The warm reset code reads it to decide which image to read.