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

    Duet3 Bossa firmware flash fails

    Scheduled Pinned Locked Moved
    Firmware installation
    4
    11
    520
    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.
    • judicarundefined
      judicar
      last edited by

      Duet3 MB6HC 1.0 (3.0beta12)

      I received this board and out of box everything worked until I attempted to flash it over ethernet via DWC. The board stopped responding over ethernet and USB (I read earlier that the ethernet is unreliable in 3.0 beta).

      I followed steps for flashing board using Bossa 1.9.1 but it always returns 'Flash failed' at 6%.

      1. Reboot with Erase jumper installed.
      2. Remove Erase jumper.
      3. Attempt to flash with Bossa either through UI or command line fails.

      $ sudo bossac -e -w -v -b -d -U -p cu.usbmodem144201 ./Duet3Firmware_MB6HC.bin -R
      ...
      go(addr=0x20401020)
      writeWord(addr=0x400e0c04,value=0x5a004301)
      [= ] 6% (68/1110 pages)write(addr=0x20401034,size=0x200)
      writeWord(addr=0x20401028,value=0x408800)
      writeWord(addr=0x2040102c,value=0x20401034)
      readWord(addr=0x400e0c08)=0x469c4662

      Flash command failed

      Any ideas? Verify also fails, but read succeeds.

      A Former User? 1 Reply Last reply Reply Quote 0
      • Danalundefined
        Danal
        last edited by

        Your input file is './Duet3Firmware_MB6HC.bin' Where did that originate?

        Also you have the -U -p and -R flags specified. You don't need them. In particular, bossac will auto discover the port. Try:

        bossac -e -w -v -b /opt/dsf/sd/sys/Duet3Firmware_MB6HC.bin
        

        Delta / Kossel printer fanatic

        judicarundefined 1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User @judicar
          last edited by

          @judicar the only other instance of something similar I've seen was resolved by trying another usb cable. It's it the exact same address it falls at each time?

          judicarundefined 1 Reply Last reply Reply Quote 0
          • judicarundefined
            judicar @A Former User
            last edited by

            @bearer It fails at different points with different versions of firmware. I assume 0x400e0c08 is some register that contains the result of whatever operation its trying to perform.

            A Former User? 1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User @judicar
              last edited by

              Odd, the target is "dead" and shouldn't react differently afaik.

              I suspect @droftarts may know a thing (or 2000) about this. Meanwhile I'd give another cable a go.

              1 Reply Last reply Reply Quote 0
              • judicarundefined
                judicar @Danal
                last edited by

                @Danal I should've mentioned this running standalone

                1 Reply Last reply Reply Quote 0
                • Danalundefined
                  Danal
                  last edited by

                  Standalone when running, got it. At the same time, per the "sudo" you are bossac-ing from unix/linux/pi, correct? If so, I would seriously consider changing the flags.

                  And, as mentioned above, try different USB cables.

                  Delta / Kossel printer fanatic

                  1 Reply Last reply Reply Quote 0
                  • judicarundefined
                    judicar
                    last edited by

                    Looks like it's a bug in the macOS/BSD version of Bossa. Dug up an old pc and it flashes fine with the Windows version. Thanks for the assistance.

                    1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User
                      last edited by A Former User

                      If you kept the complete debug output could you add it to pastebin or directly in the issue on github, maybe it helps get it fixed.

                      https://github.com/shumatech/BOSSA/issues/106

                      (or if you wanna get down and dirty try testing https://github.com/shumatech/BOSSA/pull/121 if you only make bossac it shouldn't have dependencies)

                      mbavaro created this issue in shumatech/BOSSA

                      open MacOS fails programming SAM S70, Windows succeeds #106

                      dledge opened this pull request in shumatech/BOSSA

                      open Short delay to ensure port is flushed in OS X (and prevent download h… #121

                      judicarundefined 1 Reply Last reply Reply Quote 1
                      • judicarundefined
                        judicar @A Former User
                        last edited by

                        @bearer Will do!

                        droftartsundefined 1 Reply Last reply Reply Quote 0
                        • droftartsundefined
                          droftarts administrators @judicar
                          last edited by

                          @judicar Yes, current version of Bossa 1.9.1 on Mac OS seems to be broken for Duet 3. Has been reported here https://github.com/shumatech/BOSSA/issues/106 but there doesn't seem to be much activity on the bossa github.

                          Please let us know if you recompile it with that fix, and it works.

                          Ian

                          mbavaro created this issue in shumatech/BOSSA

                          open MacOS fails programming SAM S70, Windows succeeds #106

                          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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