External GPIO interrupt example in S32k3

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

External GPIO interrupt example in S32k3

566 Views
leo_Z
Contributor III

Hi there,

I'm trying to execute simple external GPIO interrupt in S32K3X4EVB-Q172 using push button SW5

I'm followed the https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/SIUL2-external-interrupt-example-proje...

 

This is main file

AntoZ_0-1756390127775.png

 

But i'm getting an error as "SIUL2_ICU_IP_INSTANCE" not declared and other errors too

AntoZ_1-1756390147256.png

 

AntoZ_2-1756390232668.png

SIUL2 INSTANCE is configured as 0 but its not updated in respected file

AntoZ_3-1756390319411.png

 

Am I missing something in configuration,

Can anyone help this or any example available for GPIO interrupt with push button and led toggle with S32K3X4EVB-Q172 board

 

The project folder is attached bellow , I'm using RTD 5.0.0.

 

 

 

0 Kudos
Reply
1 Reply

540 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @leo_Z 

This HOWTO was implemented using RTD version 2.0.0, and several changes have been introduced in subsequent releases. As a result, some discrepancies may appear when following the instructions with newer versions.

The Siul2_Icu_Ip_Init() function error message is displayed due to a mismatch in the expected configuration parameter. The parameter passed to the function does not exist under the expected name—it was generated with a different identifier.

For example, instead of using: Siul2_Icu_Ip_0_Config_PB_BOARD_InitPeripherals. You should use: Siul2_Icu_Ip_0_Config_PB. This correct configuration can be found in the Siul2_Icu_Ip_SA_PBcfg.h file.

For better reference, I recommend reviewing the Siul2_Icu_Ip_BlinkLed_S32K344 example. It implements the same application as described in the HOWTO. This example is included with the RTD package and can be easily accessed when creating a new project from an example

 

BR, VaneB

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2160009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExternal%20GPIO%20interrupt%20example%20in%20S32k3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2160009%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3EI'm%20trying%20to%20execute%20simple%20external%20GPIO%20interrupt%20in%26nbsp%3BS32K3X4EVB-Q172%20using%20push%20button%20SW5%3C%2FP%3E%3CP%3EI'm%20followed%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio-Knowledge-Base%2FSIUL2-external-interrupt-example-project-using-S32K3-RTD-without%2Fta-p%2F1552335%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio-Knowledge-Base%2FSIUL2-external-interrupt-example-project-using-S32K3-RTD-without%2Fta-p%2F1552335%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThis%20is%20main%20file%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AntoZ_0-1756390127775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22AntoZ_0-1756390127775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354602iA71E91A4BDC02CDA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22AntoZ_0-1756390127775.png%22%20alt%3D%22AntoZ_0-1756390127775.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBut%20i'm%20getting%20an%20error%20as%20%22%3CSPAN%3ESIUL2_ICU_IP_INSTANCE%22%20not%20declared%20and%20other%20errors%20too%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AntoZ_1-1756390147256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22AntoZ_1-1756390147256.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354603i4B7EC5002305D261%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22AntoZ_1-1756390147256.png%22%20alt%3D%22AntoZ_1-1756390147256.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AntoZ_2-1756390232668.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22AntoZ_2-1756390232668.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354604i84FE10CB5CFC311A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22AntoZ_2-1756390232668.png%22%20alt%3D%22AntoZ_2-1756390232668.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ESIUL2%20INSTANCE%20is%20configured%20as%200%20but%20its%20not%20updated%20in%20respected%20file%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AntoZ_3-1756390319411.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22AntoZ_3-1756390319411.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354605i1C69C4CA823A61D6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22AntoZ_3-1756390319411.png%22%20alt%3D%22AntoZ_3-1756390319411.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAm%20I%20missing%20something%20in%20configuration%2C%3C%2FP%3E%3CP%3ECan%20anyone%20help%20this%20or%20any%20example%20available%20for%20GPIO%20interrupt%20with%20push%20button%20and%20led%20toggle%20with%26nbsp%3BS32K3X4EVB-Q172%20board%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20project%20folder%20is%20attached%20bellow%20%2C%20I'm%20using%20RTD%205.0.0.%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2160106%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20External%20GPIO%20interrupt%20example%20in%20S32k3%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2160106%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252204%22%20target%3D%22_blank%22%3E%40AntoZ%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20HOWTO%20was%20implemented%20using%20RTD%20version%202.0.0%2C%20and%20several%20changes%20have%20been%20introduced%20in%20subsequent%20releases.%20As%20a%20result%2C%20some%20discrepancies%20may%20appear%20when%20following%20the%20instructions%20with%20newer%20versions.%3C%2FP%3E%0A%3CP%3EThe%20Siul2_Icu_Ip_Init()%20function%20error%20message%20is%20displayed%20due%20to%20a%20mismatch%20in%20the%20expected%20configuration%20parameter.%20The%20parameter%20passed%20to%20the%20function%20does%20not%20exist%20under%20the%20expected%20name%E2%80%94it%20was%20generated%20with%20a%20different%20identifier.%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20instead%20of%20using%3A%20%3CSTRONG%3ESiul2_Icu_Ip_0_Config_PB_BOARD_InitPeripherals%3C%2FSTRONG%3E.%20You%20should%20use%3A%20%3CSTRONG%3ESiul2_Icu_Ip_0_Config_PB%3C%2FSTRONG%3E.%20This%20correct%20configuration%20can%20be%20found%20in%20the%20Siul2_Icu_Ip_SA_PBcfg.h%20file.%3C%2FP%3E%0A%3CP%3EFor%20better%20reference%2C%20I%20recommend%20reviewing%20the%20Siul2_Icu_Ip_BlinkLed_S32K344%20example.%20It%20implements%20the%20same%20application%20as%20described%20in%20the%20HOWTO.%26nbsp%3BThis%20example%20is%20included%20with%20the%20RTD%20package%20and%20can%20be%20easily%20accessed%20when%20creating%20a%20new%20project%20from%20an%20example%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E