1. Base Example
As 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
2. netX90 Use Case A
Before an update can be done, the netX90 need to be flashed with a maintenance firmware (MFW) and the *.mwc file.
Used here is the MFW V1.2.0.0 for Use Case A the file (MFW-netX90_flash.mxf)
ECS V5.1.0.4
and as Update ECS V5.1.0.5
3. Create Zip file for update
Take the firmware V5.1.0.5 and create the folder structure inside the zip file like this:
VAR0\XIP\FWUPDATE.NXI
and create FWUPDATE.ZIP. The name of the zip file must be exactly FWUPDATE.ZIP .
Mor information can be found under Firmware update. For example the settings for the zip archiv.
4. Change the source code of the customOD Example
After download of the zip archiv 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:
Details to this Request can be found here:
netX Dual-Port Memory packet-based services - netX 90/4000/4100 - Packet API (Revision 3)
Maintenance Firmware (netX 90/4000)
6. ESI file
Add FoE to ESI file:
5. TwinCAT
Start TwinCat. Bring the device in PREOP and go to Download:
Do not to forget to add .Zip:
Wait for downlaod:
Till the message comes:
Go to CoE
The netx will reset after click on ok and update to the new firmware.