S32K118 header difference

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

S32K118 header difference

129 Views
wang_yuchen
Contributor I

Hi All,

I'm trying to transfer my code from keil to S32DS.  In S32DS I could not use systick register. I find my header from keil is very different to the header in Studio. I wonder why is this happenning. Thanks.

the memory mapping in keil:

wang_yuchen_0-1768986693868.png

the memory mapping in S32DS:

wang_yuchen_0-1768986805110.png

 

0 Kudos
Reply
1 Reply

92 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @wang_yuchen,

Keil projects typically use ARM CMSIS headers, which define the core peripherals like the image you've shared, while S32DS projects use NXP’s device headers (generated from SVD) which implements the SCB and other device-specific typedefs. 

The file you showed from S32DS describes the register layout for the SCB, not SysTick. That’s why you don’t see it in that particular struct; the SysTick is a separate peripheral.

You can see inside the S32K144.h, there is an include for S32K144_SYSTICK.h, which shows the register description you are looking for:

S32K144_SYSTICK.h headerS32K144_SYSTICK.h header

 

Keep in mind that in most Cortex‑M S32 devices, SysTick is present at the standard address.

Best regards,
Julián

0 Kudos
Reply