Changing TRDC configuration for GPIO2

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

Changing TRDC configuration for GPIO2

939 Views
deepshika_borundiya
Contributor III

I am trying to control GPIO_IO16 from M core on GPIO2. To do so, I'll have to chane configurations of SM: mx95evk.cfg, scmi.h and tdrc.h. However, I am unable to identify PAC of GPIO2 in TRDC headerfile. 

0 Kudos
Reply
2 Replies

856 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @deepshika_borundiya 

Have you tried updating the pin_mux.c file?

 

Those are the possible mux for GPIO_IO16:

Manuel_Salas_0-1761152198217.png

 

In your iomux file:

IOMUXC_SetPinMux(IOMUXC_PAD_GPIO_IO16__GPIO2_IO_BIT16, 0U);

 

Best regards,

Salas.

0 Kudos
Reply

840 Views
deepshika_borundiya
Contributor III

Hi @Manuel_Salas ,

I am a little new to this domain and I might be wrong here. However, these files are for A55's Linux kernel. I am trying to control GPIO_IO16 from M7, via Zephyr RTOS. For that, I'll have to move the resource using SM's configuration and header files (mx95evk.cfg, config_scmi.h, config_trdc.h). Please let me know if there is any other way to going about this along with detailed steps that need to be followed.

Thanks,
Deepshika

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2188372%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EChanging%20TRDC%20configuration%20for%20GPIO2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2188372%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20trying%20to%20control%20GPIO_IO16%20from%20M%20core%20on%20GPIO2.%20To%20do%20so%2C%20I'll%20have%20to%20chane%20configurations%20of%20SM%3A%20mx95evk.cfg%2C%20scmi.h%20and%20tdrc.h.%20However%2C%20I%20am%20unable%20to%20identify%20PAC%20of%20GPIO2%20in%20TRDC%20headerfile.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2191151%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Changing%20TRDC%20configuration%20for%20GPIO2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2191151%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%2F203368%22%20target%3D%22_blank%22%3E%40Manuel_Salas%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20a%20little%20new%20to%20this%20domain%20and%20I%20might%20be%20wrong%20here.%20However%2C%20these%20files%20are%20for%20A55's%20Linux%20kernel.%20I%20am%20trying%20to%20control%20GPIO_IO16%20from%20M7%2C%20via%20Zephyr%20RTOS.%20For%20that%2C%20I'll%20have%20to%20move%20the%20resource%20using%20SM's%20configuration%20and%20header%20files%20(mx95evk.cfg%2C%20config_scmi.h%2C%20config_trdc.h).%20Please%20let%20me%20know%20if%20there%20is%20any%20other%20way%20to%20going%20about%20this%20along%20with%20detailed%20steps%20that%20need%20to%20be%20followed.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3EDeepshika%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2190910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Changing%20TRDC%20configuration%20for%20GPIO2%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252659%22%20target%3D%22_blank%22%3E%40deepshika_borundiya%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHave%20you%20tried%20updating%20the%20pin_mux.c%20file%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThose%20are%20the%20possible%20mux%20for%20GPIO_IO16%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Manuel_Salas_0-1761152198217.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Manuel_Salas_0-1761152198217.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362156iDEDDA0BF05D24FD0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Manuel_Salas_0-1761152198217.png%22%20alt%3D%22Manuel_Salas_0-1761152198217.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIn%20your%20iomux%20file%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EIOMUXC_SetPinMux(%3CSPAN%3EIOMUXC_PAD_GPIO_IO16__GPIO2_IO_BIT16%3C%2FSPAN%3E%2C%200U)%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESalas.%3C%2FP%3E%3C%2FLINGO-BODY%3E