Where are the S32SDK CPU_S32K1... macros defined?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Where are the S32SDK CPU_S32K1... macros defined?

跳至解决方案
234 次查看
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.

标记 (3)
0 项奖励
1 解答
219 次查看
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 项奖励
1 回复
220 次查看
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 项奖励