Flashing Renesas from NVIDIA Thor#

You can use the nv_renesas_check_fw script to check the MCU firmware version on boot.

  • The script is in the following location:

    • For Linux:

${NV_WORKSPACE}/etc/systemd/scripts/nv_renesas_check_fw.sh
  • If the MCU firmware is the latest version, a corresponding message is displayed on the console.

  • If the MCU firmware version requires updating, the MCU update command runs automatically and updates the firmware to the latest version.

The correct hex file for flashing is chosen from the root filesystem at /lib/firmware.

To check the firmware version again from the SoC :

  • For Linux, run the command:

sudo /bin/bash /etc/systemd/scripts/nv_renesas_check_fw.sh

To update the MCU firmware:

  1. Ensure that the MCU firmware(NFW or AFW) is in the root filesystem.

  2. Ensure that the files follow the naming convention as follows:

DRIVE-<branch>-<platform>-[NFW/AFW]-[Rh850/RH850]-U2A16-<major>.<minor>.<revision>.hex

Where:

  • The path to the AFW firmware and NFW firmware is:

   /lib/firmware/*<platform>-NFW-[Rh850/RH850]-*


- `AFW` indicates AUTOSAR firmware.
- `NFW` indicates NVIDIA firmware.
- `branch` indicates release branch of firmware. Example 7.0.2
- `<platform>` is the board number, such as p3960.
- `<major>` contains one numeric digit.
- `<minor>` contains two numeric digits.
- `<revision>` contains two numeric digits.
  1. For Linux, update the firmware by running the command:

sudo /bin/bash /etc/systemd/scripts/nv_renesas_check_fw.sh -auto_update

Where the path to the firmware is as follows:

/lib/firmware/*<platform>-AFW-[Rh850/RH850]-*

Updating the firmware includes:

  • Comparing the firmware version between the flashed version and the one on the root filesystem.

  • Updating the firmware if a higher firmware version is in the root filesystem.

  • Resetting the platform.

Note

The MCU flashing program/erase cycle is 1000. To avoid wear on the MCU flash components, flash the firmware only when necessary.

  1. Board supports only the AFW and NFW firmware. When the AFW hex file is not packaged in the /lib/firmware folder, the update script automatically chooses NFW as an alternative.