This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

!! Why cant write U0DBUF(Urgent issue) !!

Hello experts,

I am using BLE-CC254x-1.3.2 to make a UART connection between CC2540MINI-DK and CC2541MINI-DK. After finishing all registers configuration. I realize U0DBUF couldnt be written in  HAL_ISR_FUNCTION( halUart0RxIsr, URX0_VECTOR ) for example. Here I say couldnt be written is because I dont see U0DBUF changed in IAR IDE. Both TX and RX I use ISR mode.

Here's my question:

1.any additional config required for writing U0BUF?

2.anything need to do for URX0_VECTOR?

3.anything additional hardware needs to connect CC2540MINI-DK and CC2541MINI-DK, like TTL..

4.do I need to use same signal ground for CC2540MINI-DK and CC2541MINI-DK?

PS:

I config CC2541MINI-DK as pure Tx and CC2540MINI-DK as pure Rx, since I want to use CC2540MINI-DK debug port to debug.

correct my fault if I say wrong here. If I want use UART0 on CC2541MINI-DK then the debug port will be occupied. However, CC2540MINI-DK is much friendly, I could config UART0 on P1 and use TEST port. 

I config UART0 on both DKs, please note that the TEST port pinout is different.

For CC2541MINI-DK, I use UART0 alt.1(P0)

For CC2540MINI-DK, I use UART0 alt.2(P1)

I could list UART related registers configurations if helps solve the issue.

In simple, I could invoke Tx interrupt but couldnt write U0DBUF, at least I cant see anything in IAR. For Rx, I have to plug/unplug the wire between two DKs for several times, then Rx interrupt comes, however, still nothing in U0DBUF.