This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832 Switching UART driver between UART Log and GPS

Dear helper.

Currently, in my custom board had a GPS chip that connect to nRF52832 with UART port.

But also the only way that I can trace the log is the other UART port via using the NRF_LOG_INIT to initiate.

According to data sheet, nRF52832 only have 1 UART driver, so in this situation, when the GPS is in process I need to de-init the LOG module.

And when the GPS process is finish, I need to re-init the LOG module back.

Now I got the issue that device will freeze when I re-init the LOG module, and also because I didin't use the RTT log for trace, so I can't see any error code.

1. How to de-init and re-init the LOG module correctly?

2. Or is there the other option that can switch or not switch the UART driver?

Please give me an advise.

SDK version: v15

Thanks.

Related