Change pin configuration during runtime

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

Change pin configuration during runtime

810 Views
roman_g1
Contributor I

Hi,

i need to reconfigure my I2C clock and data line to GPIO during runtime.

How is it possible on imx8-m4?

Thanks

Roman

0 Kudos
2 Replies

664 Views
b36401
NXP Employee
NXP Employee

Unfortunately runtime pin configuration is not supported by the BSP.
However you can try to write to IOMUX registers directly from application.

0 Kudos

664 Views
roman_g1
Contributor I

Ok, thank you for your reply.

Is there a given sequence to write to register for changing the pin configuration?

For example if i want to write to MIPI_DSI1_GPIO0_00 register to set the mode to "000b".

Is the mux_mode field to set enough?

pastedImage_1.pngpastedImage_2.png

0 Kudos