Method FromFile
FromFile(string)
Creates a DeviceFirmware object from the specified file in Intel HEX format using the default page size.
public static DeviceFirmware FromFile(string path)
Parameters
path
stringThe name of the file from which to create the DeviceFirmware.
Returns
- DeviceFirmware
A new DeviceFirmware object representing the extracted binary firware blob, together with the metadata extracted from the firmware file name.
FromFile(string, int)
Creates a DeviceFirmware object from the specified file in Intel HEX format and a specified page size.
public static DeviceFirmware FromFile(string path, int pageSize)
Parameters
path
stringThe name of the file from which to create the DeviceFirmware.
pageSize
intThe size of the memory blocks used to upload the device firmware.
Returns
- DeviceFirmware
A new DeviceFirmware object representing the extracted binary firware blob, together with the metadata extracted from the firmware file name.