Hi Team,
Platform_Types.h is generated every time in the current S32K5 RTD, and it is a static file in S32K3 RTD. Std_Types.h is a static file in S32K5 & S32K3 RTD. Platform_Types.h and Std_Types.h are wrapper files. Why isn't Platform_Types.h a static file in S32K5 RTD? How does a customer replace it with integrators?
Thanks!
BR,
Shuang
Hi @Shuang
The reason Platform_types.h is generated file is because it has a block of code to check whether the current derivative support Core Architect A32 or A64:
[!SELECT "as:modconf('Resource')[1]"!][!//
[!IF "(ResourceGeneral/ARM_CoreArchitecture = 'ARM_A64_ARCH')"!][!//
#define CPU_TYPE (CPU_TYPE_64)
[!ELSE!][!//
#define CPU_TYPE (CPU_TYPE_32)
[!ENDIF!][!//
[!ENDSELECT!][!//
in K3, it doesn't have this block of code so it can be placed as static file.
Can you let me know how integrator work with these files: Std_Types.h, StandartTypes.h, PlatformTypes.h and Platform_Types.h. Do you use NXP files or which file can be replaced by their own files?
Hi @cuongnguyenphu,
You can see that Std_Types.h and Platform_Types.h are a wrapper file. If customer wants to use thier Platform_Types.h to replace the generated Platform_Types.h file. How to do it?
BR,
Shuang
Hi @Shuang
I see that the description in UM is not consistent with what is implementing in source code.
Referring version S32K5_RTD_R23-11_0.8.0:
PlatformTypes.h is actually the Wrapper file of Platform_Types.h, although the desciption in UM is opposite:
If then, user can replace Platform_Types.h by their own file.
Hi @cuongnguyenphu ,
Could you guide me how to replace Platform_Types.h by user's own file.
Thanks!
BR,
Shuang