Where are the S32SDK CPU_S32K1... macros defined?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Where are the S32SDK CPU_S32K1... macros defined?

ソリューションへジャンプ
606件の閲覧回数
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 解決策
591件の閲覧回数
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 返信
592件の閲覧回数
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 件の賞賛
返信