Hi there,
Is switching between UART and I2C runtime on the nRF52840 with Zephyr possible when utilizing the same two pins for TX/RX vs SDA/SCL?
Thanks in advance,
Laci
Hi there,
Is switching between UART and I2C runtime on the nRF52840 with Zephyr possible when utilizing the same two pins for TX/RX vs SDA/SCL?
Thanks in advance,
Laci
Hi.
Apologies for reviving this thread so late, but we have a very similar case as the original and the mentioned solution doesn't quite work in our case.
In the suggested solution, one UART is used with two different sets of pins. However, in our case we have one external sensor that can be either I2C or UART. Since we use all other serial ports for other things, it would be useful to actually swap from i2c2 to uart2 if i2c sensor is not present on i2c2.
Is it possible to achieve this, and if so what is the best approach?
I haven't gone this way because it seemed too problematic, so I have no experience.