This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

uart disable&enable damages uart on nrf9160

hi all,

i'm using uart with easyDMA, and i'm disabling and enabling it back on my code.
before disabling the uart TX and RX works fine. after disable&enable i get wrong data on RX.
what i get on RX is always the same bytes, even after restarting the device. it is very odd.

here is how i disable:

1727       NRF_UARTE0->TASKS_STOPTX = 1;
1728       NRF_UARTE0->TASKS_STOPRX = 1;
1729 
1730       NRF_UARTE1->TASKS_STOPTX = 1;
1731       NRF_UARTE1->TASKS_STOPRX = 1;


enable seq:
1741         NRF_UARTE0->TASKS_STARTRX = 1;
1742         NRF_UARTE1->TASKS_STARTRX = 1;


am i doing anything wrong? is there something i'm missing?

thanks in advance.

Parents Reply Children
No Data
Related