Where are the S32SDK CPU_S32K1... macros defined?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where are the S32SDK CPU_S32K1... macros defined?

Jump to solution
498 Views
teccl
Contributor II

The `device_registers.h` file, which is located in the `<path>\S32SDK_S32K1XX_RTM_4.0.3\platform\devices` directory of the S32 SDK, checks whether multiple macros with names like `CPU_S32K148`, `CPU_S32K146`, etc. are defined to determine the corresponding platform header files (S32K148.h, S32K146.h, etc.) to include.

teccl_0-1710512891450.png

What files are these macros defined within? I am unable to find them.

Tags (3)
0 Kudos
Reply
1 Solution
483 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @teccl,

The CPU macro should be declared in the project or makefile. You can find the symbol inside C/C++ Build -> Settings -> Standard S32DS C Compiler -> Preprocessor -> Defined symbols:

Julin_AragnM_0-1710538611647.png

This is declared when creating the project in S32DS.

Best regards,
Julián

View solution in original post

0 Kudos
Reply
1 Reply
484 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @teccl,

The CPU macro should be declared in the project or makefile. You can find the symbol inside C/C++ Build -> Settings -> Standard S32DS C Compiler -> Preprocessor -> Defined symbols:

Julin_AragnM_0-1710538611647.png

This is declared when creating the project in S32DS.

Best regards,
Julián

0 Kudos
Reply