I am currently using both UARTs for a project.
I created two tasks which are continuously calling ad_uart_read with a timeout of 1000ms to fill a buffer.
All was working fine until I enabled extended_sleep.
Since then I am running into the hard-fault handler getting called by the function ad_uart_signal_event_read.
So far I tried
- using pm_stay_alive while communicating with the UART devices and pm_resume_sleep when I finished this. I also implemented a method which waits for the two tasks to stop calling ad_uart_read to be save there is no read operation ongoing when entering sleep. Same result.
- opening and closing the uart before every read and write operation. Same result.
- disabling one task for testing purpose and if i disable the uart1-using task the problem disappears.
I've read that the DA14580 has two differently implemented drivers for uart1 and uart2, does this matter for my DA14680?
Do you have any advice helping me to get this fixed?