Hi PT CAOS,
TPM1_BASE is just the address, you can find this define:

It is still the pointer, so you need to use -> instead of _.
If you want to use the _, eg, TPM1_SC, you must have the definition like the bare metal code for KL25:


You can find, actually, the root still use ->, you can use the _ directly, because in your old CW project, it has the definition file like memMapPrt_kl25z4.h.
Actually, just modify the "_" to "->" is not complicate, you can try it on your side.
Wish it helps you!
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------