Hi,
I'm using the nRF52840 on a custom board along with an ESP8266 (ESP-12S) Wi-Fi module.
The ESP module prints out a bunch of information at a weird nonstandard baud rate when it powers up, and then it switches to 115200. I've found that the stuff coming in at the wrong baud rate at startup is crashing the nrf_serial driver such that I never get receive interrupts even after the module starts sending proper 115200 data, I just get just NRF_SERIAL_EVENT_DRV_ERR. It does not seem to recover on its own.
I am getting around this issue for now by waiting for several seconds after powering up the ESP before I call nrf_serial_init, but I don't think this is a great long-term solution.
Is there some way to prevent this crash from happening, or to recover from it when it happens? Can I just call nrf_serial_init again from my interrupt handler when I get NRF_SERIAL_EVENT_DRV_ERR?
Thanks!
Glen