Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    debugPrintf to usb serial - What format is it?

    Scheduled Pinned Locked Moved
    Hardware dev
    2
    4
    265
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gixxerfastundefined
      Gixxerfast
      last edited by

      (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.

      Voron V2.4 (#1317) with Duet 3 Mini5+ Wifi and 1LC v1.1 Toolboard
      Voron V0.1 (#637) with Duet 3 Mini 5+ Wifi and 1LC v1.2 Toolboard
      Ender 3 Pro with BTT SKR-2 + RRF

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Gixxerfast
        last edited by

        @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.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        Gixxerfastundefined 1 Reply Last reply Reply Quote 0
        • Gixxerfastundefined
          Gixxerfast @dc42
          last edited by

          @dc42 Yes of course, Thanks. I was confused by the bootloader messages that comes out correctly at 115200.

          Voron V2.4 (#1317) with Duet 3 Mini5+ Wifi and 1LC v1.1 Toolboard
          Voron V0.1 (#637) with Duet 3 Mini 5+ Wifi and 1LC v1.2 Toolboard
          Ender 3 Pro with BTT SKR-2 + RRF

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @Gixxerfast
            last edited by

            @gixxerfast I will change the baud rate to be 115200 on the SammyC21 to match the bootloader.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA