Part Number: MSP432P401R
I am developing an over the air update software solution using zigbee for our design, and I have modified the original BSL (MSP432BSL_1_00_01_00) code to communicate with the radio. I am able to send data and receive ack values and messages from the target device (MSP432), even successfully complete update, but randomly the EUSCI_A_UART_TRANSMIT_INTERRUPT_FLAG will not clear and I get stuck in that loop. It is very random, so I wanted to see if anyone else has seen this behavior, or if it is a known bug. Please see the code below for my transmit byte function.
void Radio_sendByteUART(uint8_t data)
{
/* Wait until the TX buffer is empty, then send */
while(MAP_GPIO_getInputPinValue(GPIO_PORT_P2, GPIO_PIN4));//Waiting for Radio to be ready to receive data.
while(!(MAP_UART_getInterruptStatus(BSL432_RADIO_MODULE, EUSCI_A_UART_TRANSMIT_INTERRUPT_FLAG)));
EUSCI_A1->TXBUF = data;
}
