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

    "...bad header format code was received (0xff)"

    Scheduled Pinned Locked Moved Unsolved
    Firmware installation
    3
    14
    715
    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.
    • ww1g16undefined
      ww1g16
      last edited by

      I also should have prefaced all this with the hardware, which is the Duet 3 6XD connected to a raspberry RPI 4 with the supplied header cable

      1 Reply Last reply Reply Quote 0
      • ww1g16undefined
        ww1g16
        last edited by

        I've just found some additional debugging instructions here:

        https://github.com/Duet3D/DuetSoftwareFramework/wiki/SBC-Setup-Guide#troubleshooting

        So please hold on until I've attempted these first as I don't want to waste anyone's time

        1 Reply Last reply Reply Quote 0
        • ww1g16undefined
          ww1g16
          last edited by

          GPIO continuity

          Tested all listed GPIO pins, and all come back as 0Ω

          gpioget gpiochip0 25

          With 3.3V connected to TfrRdy, returns 1
          When disconnected, returns 0

          Seems as expected

          spidev_test.c

          "./spidev_test -D /dev/spidev0.0" returns

          spi mode: 4
          bits per word: 8
          max speed: 500000 Hz (500 KHz)
          
          FF FF FF FF FF FF
          40 00 00 00 00 95
          FF FF FF FF FF FF
          FF FF FF FF FF FF
          FF FF FF FF FF FF
          DE AD BE EF BA AD
          F0 0D
          

          Seems as expected, minus spi mode:4 but I found https://forums.raspberrypi.com/viewtopic.php?t=298486 which seems to suggest the following:

          Set Get
          0 4
          1 5
          2 6
          3 7

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            In cases like this I would suggest getting the Duet setup in standalone mode first with an SD card in the Duet and the Pi disconnected. If you can verify that the Duet is working correctly you can start adding the Pi into the mix. All the configuration you create for the standalone SD card can be copied over to the Pi setup, so it's not lost effort.

            Z-Bot CoreXY Build | Thingiverse Profile

            ww1g16undefined 1 Reply Last reply Reply Quote 0
            • ww1g16undefined
              ww1g16 @Phaedrux
              last edited by

              @phaedrux Thanks for the suggestion! I've gone ahead and set up the 6XD in standalone mode, and everything seems to have worked as expected. I'm able to connect via web interface, and all is looking like my other duet boards 👍

              b6c9c1fb-1417-465b-9645-5b7be50920ba-image.png

              I've also updated to the latest 3.4.3 release using Duet2and3Firmware-3.4.3.zip just to make sure everything is on the same page.

              I've included the output of M122 below in case it becomes useful. How do you suggest I begin bringing the SBC back into the picture?

              (excuse the heater faults, this is just a barebones config.g from the configurator and nothing is plugged into the 6XD other than USB and Ethernet)

              M122
              === Diagnostics ===
              RepRapFirmware for Duet 3 MB6XD version 3.4.3 (2022-10-05 09:07:12) running on Duet 3 MB6XD v1.0 or later (standalone mode)
              Board ID: 08DLM-956DA-M2NS4-6J9DA-3S86Q-KA3LT
              Used output buffers: 1 of 40 (13 max)
              === RTOS ===
              Static ram: 151256
              Dynamic ram: 96076 of which 0 recycled
              Never used RAM 103340, free system stack 206 words
              Tasks: NETWORK(ready,37.9%,227) ETHERNET(notifyWait,0.2%,423) HEAT(notifyWait,0.0%,360) Move(notifyWait,0.0%,351) CanReceiv(notifyWait,0.0%,943) CanSender(notifyWait,0.0%,335) CanClock(delaying,0.0%,343) MAIN(running,61.7%,1127) IDLE(ready,0.2%,29), total 100.0%
              Owned mutexes:
              === Platform ===
              Last reset 00:01:26 ago, cause: software
              Last software reset at 2022-10-07 22:31, reason: User, GCodes spinning, available RAM 102148, slot 0
              Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0x00000000 SP 0x00000000 Task MAIN Freestk 0 n/a
              Error status: 0x00
              Step timer max interval 1754
              MCU temperature: min 33.0, current 34.9, max 35.2
              Supply voltage: min 0.2, current 0.2, max 0.3, under voltage events: 0, over voltage events: 0, power good: yes
              12V rail voltage: min 0.1, current 0.2, max 0.3, under voltage events: 0
              Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
              Events: 1 queued, 1 completed
              Driver 0: ok
              Driver 1: ok
              Driver 2: ok
              Driver 3: ok
              Driver 4: ok
              Driver 5: ok
              Date/time: 2022-10-07 22:48:12
              Slowest loop: 10.91ms; fastest: 0.05ms
              === Storage ===
              Free file entries: 10
              SD card 0 detected, interface speed: 25.0MBytes/sec
              SD card longest read time 2.4ms, write time 0.0ms, max retries 0
              === Move ===
              DMs created 125, segments created 0, maxWait 0ms, bed compensation in use: none, comp offset 0.000
              === MainDDARing ===
              Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
              === AuxDDARing ===
              Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
              === Heat ===
              Bed heaters 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
              === GCodes ===
              Segments left: 0
              Movement lock held by null
              HTTP is idle in state(s) 0
              Telnet is idle in state(s) 0
              File is idle in state(s) 0
              USB is idle in state(s) 0
              Aux is idle in state(s) 0
              Trigger is idle in state(s) 0
              Queue is idle in state(s) 0
              LCD is idle in state(s) 0
              SBC is idle in state(s) 0
              Daemon is idle in state(s) 0
              Aux2 is idle in state(s) 0
              Autopause is idle in state(s) 0
              Code queue is empty
              === CAN ===
              Messages queued 778, received 0, lost 0, boc 0
              Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 50 (min 50), ts 433/0/0
              Tx timeouts 0,0,432,0,0,344 last cancelled message type 4514 dest 127
              === Network ===
              Slowest loop: 10.91ms; fastest: 0.03ms
              Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
              HTTP sessions: 1 of 8
              = Ethernet =
              State: active
              Error counts: 0 0 0 1 0 0
              Socket states: 5 2 2 2 2 0 0 0
              === Multicast handler ===
              Responder is inactive, messages processed 0
              
              1 Reply Last reply Reply Quote 0
              • Phaedruxundefined
                Phaedrux Moderator
                last edited by

                Now that you're certain the board is working and the firmware is up to date. I suggest downloading a fresh copy of DuetPi and a fresh SD card and try connecting again.

                If you're still having issues we can take a deeper look with @dc42 and @chrishamm

                Z-Bot CoreXY Build | Thingiverse Profile

                ww1g16undefined 1 Reply Last reply Reply Quote 0
                • ww1g16undefined
                  ww1g16 @Phaedrux
                  last edited by

                  Certaintly. So just to record the order of operations I'm going through:

                  • Flash A2 SD card with DuetPi from https://pkg.duet3d.com/DuetPi.zip using BalenaEtcher
                    6946a192-5c2b-413f-8cfe-49c6ebedebcb-image.png, setup wpa_supplicant
                  • Add just flashed SD card to Pi4, remove the working card we just setup from the 6XD
                  • Pi4 and 6XD connected with ribbon cable
                    16e27ab8-6369-4940-9b82-4816f2f48183-image.png
                  • Official USB C 5V3A power supply to Pi, generic USB C power supply to 6XD from a separate charger, default "Int 5V EN" jumper installed (all others not present)
                    7d6ab5ca-2b0b-4c24-867e-c312ab3ddd1c-image.png
                  • Power on both, don't change anything else and just wait until duet3.local goes live
                    2283fe9c-41e3-4b8b-b677-2caf1746dac8-image.png

                  I can't get any further through DWC because of this 'Connecting...' window, but in the background you can see a mention of "Could not connect to Duet: Board is not available (no header))"

                  • Remove power from Pi4, plug in HDMI, reconnect power to Pi4
                  • Going through setup menu for language, wifi, etc, but pressing SKIP to downloading updates as that previously ended up never finishing.
                  • Running sudo journalctl -u duetcontrolserver

                  2022-10-08-005548_1920x1080_scrot.png

                  1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by

                    Please try a sudo apt update sudo apt upgrade again.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    ww1g16undefined 1 Reply Last reply Reply Quote 0
                    • ww1g16undefined
                      ww1g16 @Phaedrux
                      last edited by ww1g16

                      Here is the output of both of those commands, with 'upgrade' still running but after 30 mins of waiting at this stage, it look to have gotten stuck again at 'Setting up reprapfirmware (3.4.3-1)'. I've got to head out for a while, so I'll leave it running.

                      sudo_apt_get_update.txt
                      sudo_apt_get_upgrade.txt

                      Trying to navigate to DWC whilst that's going on results in:

                      2022-10-08-113858_1920x1080_scrot.png

                      "Failed to open IO device: Error 16. Cannot put line into event mode."

                      chrishammundefined 1 Reply Last reply Reply Quote 0
                      • Phaedruxundefined
                        Phaedrux Moderator
                        last edited by

                        Thanks for that. At this point I think your best bet is to run in standalone mode until @chrishamm returns and can take a look at your error messages.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 0
                        • chrishammundefined
                          chrishamm administrators @ww1g16
                          last edited by

                          @ww1g16 It looks like there is a problem with the SPI link between the Duet and SBC. Can you try out another cable and check if the problem persists? If it does, we can exchange your board. In that case please send a mail to warranty@duet3d.com, CC your reseller, and include a link to this thread.

                          Duet software engineer

                          ww1g16undefined 2 Replies Last reply Reply Quote 1
                          • ww1g16undefined
                            ww1g16 @chrishamm
                            last edited by

                            @chrishamm Yup certainly. I'll get a couple ordered to give them a go, and then get back to you 🙂

                            1 Reply Last reply Reply Quote 1
                            • ww1g16undefined
                              ww1g16 @chrishamm
                              last edited by ww1g16

                              @chrishamm Update now that the new ribbon cables have arrived, unfortunately still the same issue. To ensure there were no remnants from before, I repeated the steps from before: set it up in standalone mode (all okay), updated the firmware, removed the SD card from Duet, installed a fresh copy of DuetPi, and then went through the setup process on the Pi 4. But I'm still seeing the same warnings/error messages as posted above. I'll go ahead and email warranty@duet3d.com as suggested.

                              PXL_20221018_183815131.jpg

                              UPDATE: Email now sent

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