Beruflich Dokumente
Kultur Dokumente
Manual
12/13/2017
SSID.SRP
Table of contents
2 Introduction ............................................................................................................ 3
2.1 SDK Overview .................................................................................................. 3
2.2 System Requirement......................................................................................... 3
2.2.1 Supported ldr Firmware ............................................................................. 3
2.2.2 Supported Platforms .................................................................................. 3
2.3 SDK Package Structure ..................................................................................... 4
2.4 Firmware Update Flow ...................................................................................... 5
3 How to update firmware .......................................................................................... 6
4 Application Programming Interface (API) .................................................................. 7
4.1 Usage Overview ............................................................................................... 7
4.1.1 API Call Process ........................................................................................ 7
4.2 APIs ................................................................................................................ 9
4.2.1 fwupgrade_open ....................................................................................... 9
4.2.2 fwupgrade_close ..................................................................................... 10
4.2.3 fwupgrade_get_library_version ................................................................ 11
4.2.4 fwupgrade_get_firmware_version ............................................................. 12
4.2.5 fwupgrade_get_file_version ..................................................................... 13
4.2.6 fwupgrade_get_progress ......................................................................... 14
4.2.7 fwupgrade_program ................................................................................ 15
5 RETURN CODE LIST .............................................................................................. 16
5.1 ERROR CODES ............................................................................................... 16
2 / 16
Firmware Update User Manual
2 Introduction
The Firmware Update SDK (Software Development Kit) provide a software libraries that support "ldr"
firmware file using the unified interface to upgrade. This library helps you to customize your firmware
upgrade applications.
Windows 7
Windows 8
3 / 16
Firmware Update User Manual
4 / 16
Firmware Update User Manual
1. Once the ECU receives the "Go to update" command, ECU will start receive firmware file and check
process.
2. Firmware update process will not update the ECU program. Update process only change the DSP
program in order to avoid firmware update fail.
3. When update finish, ECU will auto restart to activate the new firmware.
4. If firmware update fail, ECU will not active normal. The default behavior will continue wait update new
firmware. User just need retry update process.
5 / 16
Firmware Update User Manual
4. Type updater.exe <select IVA module Serial Port> <update file name>.
ex. updater.exe 1 out_20170822_DBW_Release_V009_Bin.ldr
6 / 16
Firmware Update User Manual
5. You should see the firmware file version and current firmware version. It need about 2 minutes.
6. Finish
7 / 16
Firmware Update User Manual
8 / 16
Firmware Update User Manual
4.2 APIs
4.2.1 fwupgrade_open
Syntax:
Description:
Open the firmware file and connecting Path. This function will prepare the firmware update and check
the file Integrity.
Parameters:
COM [in]
Specifies the which Serial Port Path to connect firmware. For example "\\.\COM1"
filepath [in]
Specifies the path of ldr firmware. Using the absolute path.
Returns:
RETCODE_NO_ERROR - On success.
Otherwise see the error code list.
9 / 16
Firmware Update User Manual
4.2.2 fwupgrade_close
Syntax:
Description:
Close the the firmware file. all resource will free.
Parameters:
None
Returns:
RETCODE_NO_ERROR - On success.
Otherwise see the error code list.
Remark:
None
10 / 16
Firmware Update User Manual
4.2.3 fwupgrade_get_library_version
Syntax:
Description:
Get the library version.
Parameters:
version [out]
Pointer to a buffer that will hold the version of library. The buffer is C string that end of '\0'. The
content of unused bytes filled 0x00.
Returns:
RETCODE_NO_ERROR - On success.
Otherwise see the error code list.
Remark:
None
11 / 16
Firmware Update User Manual
4.2.4 fwupgrade_get_firmware_version
Syntax:
Description:
Get the firmware version.
Parameters:
version [out]
Pointer to a buffer that will hold the version of firmware. The buffer is C string that end of '\0'. The
content of unused bytes filled 0x00.
Returns:
RETCODE_NO_ERROR - On success.
Otherwise see the error code list.
Remark:
None
12 / 16
Firmware Update User Manual
4.2.5 fwupgrade_get_file_version
Syntax:
Description:
Get the ldr file firmware version.
Parameters:
version [out]
Pointer to a buffer that will hold the version of file. The buffer is C string that end of '\0'. The content
of unused bytes filled 0x00.
Returns:
RETCODE_NO_ERROR - On success.
Otherwise see the error code list.
Remark:
None
13 / 16
Firmware Update User Manual
4.2.6 fwupgrade_get_progress
Syntax:
Description:
Get the progress of the update operation.
Parameters:
None [out]
Pointer to
Returns:
Update progress. The progress range is 0 to 100.
Fail return -1
Remark:
None
14 / 16
Firmware Update User Manual
4.2.7 fwupgrade_program
Syntax:
Description:
Start update the firmware. NOTICE: This operation can't undo or interrupt. User should double confirm
the target platform matching the firmware. If you using the incorrect firmware. The target platform may
enter the unknown condition.
Parameters:
None
Returns:
SUCCESS - On success.
Otherwise see the error code list.
15 / 16
Firmware Update User Manual
The following topics provide lists of Firmware Update Library return codes.
These values are defined in the libfwupgrade-ch.h header files.
16 / 16