Just a thought, but could this function also set the preamble to ASCII so it could still be printed to a terminal without being decoded?
that function outputs in ascii. Check your baudrate and protocol configuration that it is the same at the terminal and the fx3 uart.
Take care which configuration you are using of the configure io matrix. The 16- bit or the 32-bit depending on this the UART is at different output pins.
CyU3PDebugPrint outputs a preamble and a message. The preamble is not in ASCII.
Yes, that is right. I do not think you can change the preamble, but I am not sure. You can switch the preamble off with the function call:
CyBool_t sendPreamble /* CyFalse : disable preamble data before actual message,
CyTrue : Send preamble data before actual message */
I think we've gone full circle. You can turn off the preamble with CyU3PDebugPreamble(). I was thinking a third option for the parameter for this function could be something like ASCII, so that the preamble would be output as text.
It is for tool to decode and if a visual mean other than tool is used then this is just overhead and printing it in ASCII is not going to serve a purpose. So why would you want an option like that? Please elaborate.
If the codes are in human readable form (ascii hex), I can write this to an ascii log file. If I need to decode the preamble, I can do this on ascii hex just as easy as hex and the ascii hex won't screw up the log file.