Hello,
I am working a project that uses the NRF52840 dongle with BLE and UART to communicate to two separate devices while going through temperature cycles. I have not had any issues communicating with Bluetooth, however the UART seems to drift. I understand that the HXFO should be active when using UART to ensure stable communication, and I have attempted to activate it using the onboard external crystal of the 52840 dongle, and the Clock confirms that it is started and is active (Returns 0x10001), however there is still drift. Is there a different sequence of events or configuration that I should have in order to properly use UART with the HFXO on the dongle? I use Pins (P0.02/P1.15) with the UART Async API in the NCS SDK.
NRF_CLOCK->TASKS_HFCLKSTART = 1;
while (NRF_CLOCK->EVENTS_HFCLKSTARTED == 0)
;
printk("HFCLK SRC %X", NRF_CLOCK->HFCLKSTAT);