S32DS setup for S32K144 help for simplest program

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

S32DS setup for S32K144 help for simplest program

ソリューションへジャンプ
1,251件の閲覧回数
brucebowling
Contributor I

Been ripping my hair out trying to figure this out, I am sure I am missing something. Trying to get a simple program to compile, following the cookbook examples. I have installed the S32DS.3.5_b220726_win32.x86_64.exe and the SW32K1_S32DS_3.5.4_D2307.zip for the toolchain. Created a new project and selected S32K144 device. I am trying to compile this simple 1 line:

#include "S32K144.h"

int main(void) {

WDOG->CNT=0xD928C520;

}

Compiler says  error: 'WDOG' undeclared - this syntax comes straight out of the cookbook.  Obviously I do not have the correct include file or there has been a change, what am I missing? Do I need to install the SDK and/or the RTM in order to get this one simple line to compile? I have read many help pages and posts but have not found anything specific to this issue. I know I am missing something, anyone know? Thanks - Bruce

0 件の賞賛
返信
1 解決策
1,217件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @brucebowling 

The definition of the Peripheral WDOG base pointer (WDOG) has changed in the S32DS v3.5 ".h" files, now defined as "IP_WDOG". This also applies to all the definitions of the peripherals base pointer.

Please check these changes directly in the "S32K144.h".

 

B.R.

VaneB

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,218件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

Hi @brucebowling 

The definition of the Peripheral WDOG base pointer (WDOG) has changed in the S32DS v3.5 ".h" files, now defined as "IP_WDOG". This also applies to all the definitions of the peripherals base pointer.

Please check these changes directly in the "S32K144.h".

 

B.R.

VaneB

0 件の賞賛
返信