Other Parts Discussed in Thread: CC3200, , ENERGIA
Tool/software: Code Composer Studio
I am trying to use the CC3200-LAUNCHXL to send an 8 byte packet over UARTA1_BASE to a peripheral sensor. the packet consists of 8 bytes of data each consists of a series of set pattern of bytes for the sensor (example packet {0xf5, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x2A, 0xf5}). I am currently using code composer with the 1.1.0 SDK for the CC3200 to program the CC3200. The problem is that when I try to send the packet {0xf5, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x2A, 0xf5} over UART it prints {0xf5, 0x2A, 0x2A, 0xf5} on the output when looking at the signal using an oscilloscope. How do I send the packet {0xf5, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x2A, 0xf5} over UART?
extra information: I send the packet using the code below.
for(i =0; i < 8; i++){
sprintf(serialoutbuff,"%c", Serialoutdata[i]);
UART_PRINT((const char*)serialoutbuff);
}
I also have tried using the Message((const char*)serialoutbuff); to send the packet and it has the same result.
I have written my code in Energia using Serial1.write(data) and it sends the packet properly but I need the code to work on the SDK due to access to the low power sleep modes the SDK allows.