HCI and MCUMGR on the same UART

Hello,

My board contains nRF9160 and nRF52840. The nRF52840 is a HCI controller (based on HCI lpuart example). nRF9160 communicates with nRF52840 over UART. I want to perform firmware update for nRF52840 with MCUMGR over the same pins that are used for HCI communication. What would you suggest to achieve that?

Is it possible to use one UART for both HCI and MCUMGR (not in the same time)? Can I use e.g. uart2 to communicate with nRF52840 over HCI so I can use bluetooth and then, if I want to perform DFU for the HCI controller, use also uart2 but now to communicate to nRF52840's mcuboot over MCUMGR?

Setup:
Custom board with nRF9160 and nRF52840
NCS v2.6.1

Best regards,
Filip

Related