I am using an STM32, and monitoring the serial port using CoolTerm.
I have an array, that stores the following: 0x01 0xFA 0xAA 0x05 ... etc. I want to sent that over serial and see those values in plain text.
When I use the following:
char array[10] = { 0x01, 0xFA, 0xAA, 0x05, 0x01, 0xFA, 0xAA, 0x05, 0x01, 0x01 };
HAL_UART_Transmit(&huart4, (uint8_t *)array, len, 1);
The output on CoolTerm is:
. . . . . . . . . .
Dots instead of plain text values are shown, if I switch to HEX mode I can see the values.
What I need the output to look like:
"0x01 0xFA 0xAA 0x05 0x01 0xFA 0xAA 0x05 0x01 0x01"
I imagine this is due to the array storing byte literals, but I have no idea what to use to see the hex in plain text in the ASCII decoding serial monitor.