I have been looking into the ble UART example a bunch trying to incorporate it into the ble blinky example.
I keep getting an NRF_ERROR_INVALID_STATE error when calling APP_UART_FIFO_INIT.
I have looked at a couple examples:
https://devzone.nordicsemi.com/f/nordic-q-a/19767/app_uart_fifo_init-crashes
https://devzone.nordicsemi.com/f/nordic-q-a/4399/sending-via-uart
I believe I have the app_uart_fifo.c file linked correctly as this is the file that is called when debugging (see the second link).
The first link was interesting because it suggests that it's possible for the code to execute twice. I don't know where or how this would be the case.
I can trace the call stack all the way to where I am getting the error but I am a little uncertain as to what I can do once I am there.
Where the error code is coming from:
p_cb->state says it is already set to NRFX_DRV_STATE_INITIALIZED
Call stack:
The documentation says that if NRFX_ERROR_INVALID_STATE is returned then the "driver is already initialized". I don't get how this can be unless it has already been called thus asking the question of how it could be called multiple times.
Any thoughts would be helpful.
Thanks!
documentation: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fgroup__nrfx__uarte.html