IOMUXD switching in run-time

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IOMUXD switching in run-time

1,057件の閲覧回数
arun_joseph
Contributor I

Hello,

Is there a problem switching the IOMUXD of a pin in runtime while the hardware peripheral is enabled?

Example M4 I2C is configured as the MUX mode and the I2C HW is in use.

At some point when there is no I2C communication going-on with slave device, can the SW change the IOMUXD to RGPIO (this is supported in that pin) and do some operations via port pin and then later come back to I2C mode by switching back in IOMUXD.

Should I disable the M4 I2C before switch the MUX mode?

Thanks

Arun J

タグ(1)
0 件の賞賛
返信
1 返信

1,023件の閲覧回数
gusarambula
NXP TechSupport
NXP TechSupport

Hello Arun J,

You do not specify which i.MX Processor you are using but, in any case, changes to the IOMUX registers would reflect immediately. Just keep in mind that since these would differ from the information passed on by the Device Tree, the OS would not be aware of this change so please be careful to switch back again before prompting the I2C driver to use this interface. I would recommend disabling the M4 I2C just as a precaution, but you can see more details on how the PADs for the pins work on the Reference Manual of the processor you are using (it’s an added precaution, but in theory you shouldn’t have problems).

I hope this helps!

Regards,

0 件の賞賛
返信