GxFpgaUpgradeFirmware

Purpose

Upgrades the board’s firmware.

Syntax

GxFpgaUpgradeFirmware (nHandle, szFile ,nMode, pnStatus)

ParametersParameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX3500 board.
szFile
PCSTR
Path and file name of the firmware file. The firmware file extension is RPD.
nMode
SHORT
The upgrading firmware mode can be as follows:
0.   GT_FIRMWARE_UPGRADE_MODE_SYNC: the function returns when upgrading firmware is done or in case of an error.
1.   GT_ FIRMWARE_UPGRADE_MODE_ASYNC: the function returns immediately. The user can monitor the progress of upgrading firmware using the GxFpgaUpgradeFirmwareStatus API.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function used in order to upgrade the board’s firmware. The firmware file can only obtained by request from Marvin Test Solutions.

Note: Loading an incorrect firmware file to the board can permanently damage the board.

Example

The following example loads Upgrades the board’s firmware using synchronous mode:

 

GxFpgaUpgradeFirmware (nHandle, “C:\\Gx3500Fw.rpd”, GT_LOAD_MODE_SYNC, &nStatus);

 

See Also

GxFpgaUpgradeFirmwareStatus, GxFpgaGetErrorString