WinFlash

Winflash says "Device not found", or other error, when flashing!!

- 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.

How do I avoid "Error while flashing" when loading new ESX run-time system hex files?

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.

How do I add a WinFlash application info block to a CoDeSys project?


VAR_GLOBAL (* do NOT make constant; else CoDeSys might not create the ROM part *)
   (* no \0 possible. Else CoDeSys will detect end-of-string in assignment !
                              //'Lx_?z2.$01$1DDeviceName      ProjectName    Version   $14AdditionalComment   '; *)

   gs_InfoBlock : STRING(99) := 'Lx_?z2.$01$1DESX2            CoDeSysProject V1.23r4   $14KenSentMe           ';
END_VAR

Syndicate content