[S32K3] external GPIO Interrupt example

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

[S32K3] external GPIO Interrupt example

Jump to solution
457 Views
Changhawn
Contributor III

Dear

I'm trying to use one of the GPIO pins as an interrupt with an external chip,

Is there an example of registering an interrupt?

The below sequence is based on references from the NXP community, but I'm asking because it doesn't seem to work well.

If there's no example, could you please check if the below is correct?

Thank u~

1. GPIO configuation

 

Changhawn_1-1721965913933.png

 

2. register interrupt to intCtrl_Ip 

Changhawn_2-1721965960070.png

 

3.  SIUL2_ICU , add 

Changhawn_3-1721965996823.png

Changhawn_4-1721966015151.png

Changhawn_5-1721966033283.png

 

4.  SW

Changhawn_6-1721966056870.png

Changhawn_7-1721966071496.png

 

0 Kudos
Reply
1 Solution
364 Views
Changhawn
Contributor III

I have confirmed this issue. 

Because one api was missed.

View solution in original post

0 Kudos
Reply
3 Replies
365 Views
Changhawn
Contributor III

I have confirmed this issue. 

Because one api was missed.

0 Kudos
Reply
434 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Changhawn,

It looks like you have referred to the SIUL2 external interrupt example project using S32K3 RTD without AUTOSAR.

Have you added "6. Add Siul2_Icu LLD APIs"?

There may be some differences due to different RTD versions. Could you please tell me the S32K3 RTD version and S32K3 part number? If you are using S32K3 development board, please tell me which development board you are using.


Best Regards,
Robin
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------

 

0 Kudos
Reply
431 Views
Changhawn
Contributor III

Dear Robin.

Yes. I added "6. Add Siul2_Icu LLD APIs" as callback function.

My test RTD Version is 3.0.0 of S32K314.  And this is our development board.

Thank u

 

0 Kudos
Reply