Agilex™ 7 Configuration User Guide

ID 683673
Date 11/04/2024
Public
Document Table of Contents

5.1.4. Remote System Update Configuration Sequence

Figure 70. Remote System Update Configuration Sequence

In the following figure the blue text are states shown in the Configuration Flow Diagram.

Reconfiguration includes the following steps:

  1. After the device exits power-on-reset (POR), the boot ROM loads flash memory from the first valid decision firmware from one of the copies at addresses 0, 512 K, 1024 K, or 1536 K to initialize the SDM. The same configuration firmware is present in each of these locations. This firmware is part of the initial RSU flash image. ( Refer to Step 2 of Guidelines for Performing Remote System Update Functions for Non-HPS for step-by-step details for programming the initial RSU flash image into the flash.)

    If you trigger the reconfiguration with a pulse of nCONFIG low, the SDM loads the decision firmware.

  2. The optional Direct to Factory Image pin controls whether the SDM firmware loads the factory or application image. You can assign the Direct to Factory Image input to any unused SDM pin. The SDM loads the application image if you do not assign this pin.
  3. The configuration pointer block in the flash device maintains a list of pointers to the application images.
  4. When loading an application image, the SDM traverses the pointer block in reverse order. The SDM loads the highest priority image. When image loading completes, the device enters user mode.
  5. If loading the application image is unsuccessful, the next image that the SDM loads has dependency on the direct factory image fallback setting. Note that this setting is not enabled by default.
    • If direct factory image fallback is disabled, the SDM loads the next highest priority application image from the address in the configuration pointer block. If the SDM fails to load all application images, the SDM loads the factory image.
    • If direct factory image fallback is enabled, the SDM loads the factory image. If the device is running in user mode and you manually load an application image but it fails, the SDM loads the factory image as well.
  6. If loading the factory image fails due to factory image corruption, you can recover by reprogramming the quad SPI flash with the initial RSU flash image using the JTAG interface.
    Note: For every unsuccessful configuration, the nSTATUS asserts a low pulse to indicate configuration failure and the SDM proceeds to load the next image automatically. Do not assert nCONFIG low to attempt to load the next application image.
  7. During the remote update to other application image or factory image, the SDM loads the decision firmware.
Note:

You must keep nCONFIG high until the device enters the user mode.

  • Keep the nCONFIG signal high after the device powers up and throughout the entire device configuration to load an application or factory image.
  • Keep the nCONFIG signal high during the remote update to other application image or factory image by using the RSU_IMAGE_UPDATE command.

You drive nCONFIG low only when the device is in user mode to trigger the reconfiguration.