- Does the Winflash bitrate match the bitrate of the controller? (STW ECU Flashloader default is usually 125k)
- Is the company ID correct?
- Are the proper Comm-DLL and Application hex files configured?
- Is the proper "type of hexfile" selected?
--- For Codesys v2.3 applications use IEC1131 Application
--- For Codesys v2.3 run time systems see the "How do I avoid "Error while flashing" when loading new ESX run-time system hex files?" FAQ.
--- For IOXp use the Automatic setting.
--- For projects in C, use the C Application setting.
The sector layout of the ESX2 RTS changed for the release of v3.09r0. The allocation of two additional sectors of flash memory was necessary to support additional RTS features and new babyboard variants. As a consequence, the Type of Hexfile "IEC1131 run-time system" cannot be used anymore for ESX RTS version 3.09r0 and newer. (The RTS for other devices, such as ESX-LT and ESX-Micro is unaffected)
Switch the Type of Hexfile to "User Defined". Change the sectors setting according to the table below, and then flash as normal.
VAR_GLOBAL (* do NOT make constant; else CoDeSys might not create the ROM part *)
//'Lx_?z2.$01$1DDeviceName ProjectName Version $14AdditionalComment '; *)
END_VAR