Part Number: LAUNCHXL-CC1310
Tool/software: Code Composer Studio
I have a UART driverlib set up that works fine throughout the entirety of my code both in debug mode and free run (Just loaded onto a chip using Flash Programmer 2). However, I am also using the test commands during my code and use:
RF_runCmd(rfHandle, (RF_Op*) &RF_cmdTxTest, RF_PriorityNormal, NULL, RF_EventTxEntryDone);
I then end up in the WFI and wait for a message on the UART to cancel this. I have no problems with this using debug mode, but if free running the UART interrupt only fires after receiving 3 or more messages (Of size 2 or greater (4 messages if size 1) (I have tried sizes of up to 12 bytes with identical results)) within a second.
I have tried setting the UART interrupt to priority level 0 in case there was some background interrupt I cannot see which causes this problem by constantly overriding the UART interrupt.
Here is the initial set up for my UART:
uart_private.handle = UART0_BASE;
PRCMPowerDomainOn(PRCM_DOMAIN_SERIAL);
while (PRCMPowerDomainStatus(PRCM_DOMAIN_SERIAL) != PRCM_DOMAIN_POWER_ON)
;
PRCMPeripheralRunEnable(PRCM_PERIPH_UART0);
PRCMLoadSet();
while (!PRCMLoadGet())
;
IOCPinTypeUart(uart_private.handle, MODULE_UART_RX, MODULE_UART_TX, MODULE_UART_CTS, MODULE_UART_RTS);
UARTDisable(uart_private.handle);
while (UARTBusy(uart_private.handle))
;
uint32_t config = UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE | UART_CONFIG_PAR_NONE;
UARTConfigSetExpClk(uart_private.handle, SysCtrlClockGet(), 115200, config);
UARTFIFOLevelSet(uart_private.handle, UART_FIFO_TX1_8, UART_FIFO_RX1_8);
UARTEnable(uart_private.handle);
IntPrioritySet(INT_UART0_COMB, INT_PRI_LEVEL0);
UARTIntRegister(uart_private.handle, &UART_Read);
UARTIntEnable(uart_private.handle, UART_INT_RX);
while (UARTBusy(uart_private.handle))
;Thank you in advance for any help you might be able to give