software:nRF CONNECT SDK 1.6.1
CPU type:nrf5340
module:uarte
hi professor,
I want to trigger receiving interrupt when receiving timeout.I see the product specification there are rxto event in nrf5340.Do you have any example code for me?
software:nRF CONNECT SDK 1.6.1
CPU type:nrf5340
module:uarte
hi professor,
I want to trigger receiving interrupt when receiving timeout.I see the product specification there are rxto event in nrf5340.Do you have any example code for me?
Do you see the log from your application? What does uart_callback_set() return? Does it return 0 or something else? If you can see your log, you should see it printed
"uart set callback failure"
If it fails, it will print both lines (with your current implementation):
"uart set callback failure."
"uart set callback finished."
Which one is it? And if it fails, what does it fail with?
Try:
printf("uart set callback failure (err = %d)\n", err_code);