Updating MCU FW#
Configuration Setup#
The MCU FW is updated during the flashing process based on the configuration parameters from the two configuration files.
Board configuration file
Firmware configuration file
Command line option
Board Configuration json File#
The default settings enable all non-Core FW update and also make the target non-bootable if FW update fails. These settings are defined in the Board configuration file.
The default settings are: -
n_FlashFirmware: True-s_BrickOnCoreFWFlashFail: True-s_BrickOnFirmwareUpdateFail": True
n_FlashFirmware: True- This parameter, if set to True, enables the all non-core FW update.
s_BrickOnCoreFWFlashFail: True- This parameter, if set to True, makes the target non-bootable if Core FW flash fails.
s_BrickOnFirmwareUpdateFail: True- This parameter, if set to True, makes the target non-bootable if MCU FW update fails.
Firmware.json#
This is a new file with Firmware update settings, with the following parameters for MCU FW update.
MCU_FW:{ "FWupdateScript": "MCU_Flashing.py", "MCUFW": "DRIVE-V7.x.x-P39xx-NFW-RH850-U2A16-00.09.36.hex", "tegraUsbPortName": "/dev/ttyACM0", "forceUpdate" : "No" }
FWupdateScript: MCU_Flashing.py- This parameter is the name of the MCU flashing script.
MCUFW: DRIVE-V7.x.x-P39xx-NFW-RH850-U2A16-00.09.36.hex- This parameter is the name of the MCU firmware binary file. - This parameter is used to select other than default MCU firmware binary file in the release package.
tegraUsbPortName: /dev/ttyACM0- This parameter is the default Tegra USB port. - This parameter is useful if the Tegra USB port is different on the connected target board.
forceUpdate: No- This parameter, if set to True, forces the MCU FW update, even if the version is the same or lower than the current version. - This is useful in case of FW update testing the MCU FW and/or to revert to the previous version for any issues in the new version.
Updating MCU FW on the Target#
The MCU FW is updated after the core FW flashing, if enabled, during the flashing cycle, as per the configuration set up from the above listed two configuration files. If any fail in MCU-FW update results in erasing a boot binary, to make the target unbootable.
Disabling MCU FW Update#
The MCU FW Flashing can be disabled with the command line option --no_firmware_update. This is like a master switch, to block the MCU-FW flashing. This overrides all configuration setup from Board Configuration and Firmware Configuration.