Hello,
I recently noticed that I may have an issue with our current design of PCB and firmware. We basically have created a datalogger using the nRF9160, and we take readings for a variety of sensors. One such thing that we have yet to add into firmware, is the ability to read Modbus sensors (RS485), which would need a UART port.
I am not sure I have ever fully understood the devicetree, so bare with me....
We currently have in use - (Enabled in Overlay file)
I2C0
SPI1
I2C2
UART3
So I don't know how we are going to add a further UART Port.
Is it possible to disable say I2C0, and enable UART0 in runtime?
Alternatively, is it possible to dynamically change the pins of UART3 to go to another set of UART pins in runtime?
On the latter I have found this remap function but it runs in PRE_KERNEL_1 sdk-zephyr/samples/boards/nordic/dynamic_pinctrl/src/remap.c at main · nrfconnect/sdk-zephyr
Can this be modified to work without rebooting the firmware?
I am guessing either of these would be possible, maybe without using the Devicetree, but I cant find any specific reference document.
Thanks,
Damien