Hello,
in such case, you are using the Intrinsic version of the ewrte.h file, found in the Embedded Wizard installation directory SDK. This file is NOT intended to be used with the generated code. Please ensure to use the file from the Platform Package.
Best regards
Paul Banach