Part Number: CC2640
Other Parts Discussed in Thread: UNIFLASH, ,
Tool/software: TI C/C++ Compiler
We are running a fairly simple UART implementation where were are sending data to/from the CC2640 LaunchPad from TeraTerm.
If we run these exchanges long enough we are seeing abnormalities on the UART when the LaunchPad is transmitting. We are seeing random(old) data being transferred in the midst of our normal data packets. We call UART_Params_Init but immediately afterward we overwrite some of the parameters as follows.
We are using a statically allocated buffer to hold the data we want to send. I have created a middleware function to intercept all of the calls to UART_write() so that I can store away what we intend write versus what comes out on the serial port. The data we capture in this middleware represents exactly what we want to write, but yet the serial ports shows a different set of data. We have used a USB Beagle 480 usb sniffer to confirm that the data seen on the Beagle matches the data on the port.
UART_Params_init(&uartParams); uartParams.writeDataMode = UART_DATA_TEXT ; uartParams.readDataMode = UART_DATA_TEXT; uartParams.readMode = UART_MODE_BLOCKING; ; uartParams.writeMode = UART_MODE_BLOCKING; ; uartParams.readReturnMode = UART_RETURN_FULL; uartParams.readEcho = UART_ECHO_OFF; uartParams.baudRate = DEFAULT_BAUDRATE;
What steps can I take at this point to determine what might be occurring?