debugPrintf to usb serial - What format is it?
-
(Probably the wrong category but I couldn't see one more suitable)
I'm trying to figure out why the firmware and my Sammy C21 board isn't behaving and I thought it be a good idea to print debug messages to serial output.
However, they make no sense to me. I thought it was ascii codes in hex but it doesn't seem to be that.
debugPrintf("Volts in: %.1f", voltsVin);
Comes out as (Don't really see the CAN and ACK as it only appears when I paste it here):
00000000 18 66 fe 9e e0 9e 60 e6 f8 06 00 00 98 fe 00 00 ␘f....`. .␆ 00000016 00 98 18 98 e0 18 18 86 00 18 66 fe 9e e0 9e 60 00000032 e6 f8 06 98 98 86 9e 98 18 98 e0 18 18 86 00 18 ..␆..... ␘..␘␘. 00000048 66 fe 9e e0 9e 60 e6 f8 06 98 98 86 9e 98 18 98 f....`.. ␆.....␘. 00000064 e0 18 18 86 00 18 66 fe 9e e0 9e 60 e6 f8 06 98 .␘␘. 00000080 98 86 9e 98 18 98 e0 18 18 86 00 18 66 fe 9e e0 ....␘..␘ ␘. 00000096 9e 60 e6 f8 06 98 98 86 9e 98 18 98 e0 18 18 86 .`..␆... ..␘..␘␘. 00000112 00 18 66 fe 9e e0 9e 60 e6 f8 06 98 98 86 9e 98 00000128 18 98 e0 18 18 86 00 18 66 fe 9e e0 9e 60 e6 f8 ␘..␘␘. 00000144 06 98 98 86 9e 98 18 98 e0 18 18 86 00 18 66 fe ␆.....␘. .␘␘. 00000160 9e e0 9e 60 e6 f8 06 98 98 86 9e 98 18 98 e0 18 ...`..␆. ....␘..␘ 00000176 18 86 00 18 66 fe 9e e0 9e 60 e6 f8 06 98 98 86 ␘. 00000192 9e 98 18 98 e0 18 18 86 00 18 66 fe 9e e0 9e 60 ..␘..␘␘. 00000208 e6 f8 06 98 98 86 9e 98 18 98 e0 98 1e f8 86 86 ..␆..... ␘...␞... 00000224 18 66 fe 9e e0 9e 60 e6 f8 06 98 98 86 9e 98 18 ␘f....`. .␆.....␘ 00000240 98 e0 98 1e f8 86 86 18 66 fe 9e e0 9e 60 e6 f8 ...␞...␘ f....`.. 00000256 06 98 98 86 9e 98 18 98 e0 98 1e f8 86 86 18 66 ␆.....␘. ..␞...␘f 00000272 fe 9e e0 9e 60 e6 f8 06 98 98 86 9e 98 18 98 e0 ....`..␆ .....␘.. ... etc
I have tried Yat and Cutecom but. It's probably something basic but I can't figure it out.
-
@gixxerfast the messages should come out as ASCII. Because the SAMMYC21 uses a USB-to-serial converter, you will need to set the USB port on the PC to the correct baud rate, which is set to 57600 in file Platform.cpp.
-
@dc42 Yes of course, Thanks. I was confused by the bootloader messages that comes out correctly at 115200.
-
@gixxerfast I will change the baud rate to be 115200 on the SammyC21 to match the bootloader.