HI
How stable is the serial_uartesexample in nRF5? I'm running it on a PCA10056, the example works for about 5 seconds and then UART RX stops, i.e. nothing is received after that point.
Thank you.
Pete.
HI
How stable is the serial_uartesexample in nRF5? I'm running it on a PCA10056, the example works for about 5 seconds and then UART RX stops, i.e. nothing is received after that point.
Thank you.
Pete.
Part of the problem here is that nrf_serial doesn't handle errors gracefully, e.g. you need to uninit() and init() again if there are any errors. Instead I recommend to check out:
https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_libuarte.html
Best regards,
Kenneth
HI Kenneth
Thank you for your reply. Does lib_libuarte support 2 UARTs?
Best Regards
Pete.
HI Kenneth
I have tried the lib_libuarte example. Seems if there is already data on the RX pin when it starts up, it crashes. If the data (GPS) is connected later it works.
I really like the nRF52840 and the Nordic range, but if it is this hard just to get a UART working, it will be a nightmare to use it on a real product with a deadline. I'm finding it hard to move beyond anything that requires more than is in one of the examples. I would love to use one of these devices in a product, but I can't see how.
Best Regards
Pete.
I am not aware of any issue with lib_libuarte, I tried pulling RXD pin low during init or random time, but the program kept on running when pin was released. Have you added some assert or similar in uart_event_handler() when there is an NRF_LIBUARTE_ASYNC_EVT_ERROR event?
Best regards,
Kenneth
I am not aware of any issue with lib_libuarte, I tried pulling RXD pin low during init or random time, but the program kept on running when pin was released. Have you added some assert or similar in uart_event_handler() when there is an NRF_LIBUARTE_ASYNC_EVT_ERROR event?
Best regards,
Kenneth