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.

MSP432 Receiving UART from Master



Hi there,

the MSp432 is sending Samples to the Beaglebone Black via UART.

The communication is working fine for both ways. 

When the MSP432 is continually sending samples and in the middle of a "sample send state" the BBB sends him a message.

The MSP432 receives an interrupt and after that comes back into the "sample send state" and get stuck in the while loop that waits until the character has been sent:

UCA3TXBUF = TX_Array[1];
while (!(UCA3IFG&UCTXIFG));

How can i get out of there? Do i have to make a timer on the MSP432 or do i have to implement a UART busy statement question on the BBB?

Is there a way when receiving a master message the slave stops what hi is doing and go forward?

  • You could always use some kind of handshaking between master and slave. A single GPIO could handle this. But I do not understand when (and why) your program will stuck in the while( !(UCA3IFG & UCTXIFG) ); loop. The flag is set automatically when the buffer is empty. If you do not clear it in software and do not feed the TX buffer, it must get set at some time.

    Dennis

**Attention** This is a public forum