1. Base Example
As a base for this Example, the ECS CustomOD Example can be used.:
netXStudio_ECSV5_simpleConfig_V2.1.0.0\netX 90 - EtherCAT Slave - simpleConfig V2.1.0.0\Components\cifXApplicationDemoECS\Sources
...
Before an update can be done, the netX90 need needs to be flashed with a maintenance firmware (MFW) and the *.mwc file.
Used here is For Use Case A the MFW V1.2.0.0 for Use Case A the file (File MFW-netX90_flash.mxf) is used.
ECS V5.1.0.4
and as Update ECS V5.1.0.5
...
Take the firmware V5.1.0.5 and create the folder structure inside the zip file like this:
VAR0\XIP\FWUPDATE.NXI
and Now create FWUPDATE.ZIP. The name of the zip file must be exactly FWUPDATE.ZIP .
Mor More information can be found underhere: Firmware update. For example the settings for the zip archivarchive.
4. Change the source code of the customOD Example
After download of downloading the zip archiv archive, a trigger is necessary to send the packet HIL_FIRMWARE_RESET_REQ to the stack and to start the update.
For that the "Hello Word" object of the customOD example can be used.
In the Write Object Indciation can be palced , the AppECS_StartUpdateReq can be placed:
Details to this Request can be found here:
...
Add FoE to ESI file:
5. TwinCAT
Start TwinCat. Bring Change the device in state to PREOP and go to Downloadselect "Download...":
Do not to forget to add .Zip:
Wait for downlaoddownload:
Till the this message comesopenes:
Go to CoE
The After a click on "OK", the netx will reset after click on ok and update to the new firmware.
...