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

    Cannot get in Duet 3 web server after upgrade

    Scheduled Pinned Locked Moved
    Firmware installation
    4
    20
    701
    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.
    • jdumoulinundefined
      jdumoulin @jdumoulin
      last edited by

      @jdumoulin

      When I tried to upgrade through the raspberry from 2 different locations:

      pi@BAP:~ $ cd BOSSA
      pi@BAP:~/BOSSA $ ~/BOSSA/bin/bossac -e -w -v -b Duet3Firmware_MB6HC.bin
      Erase flash

      Done in 3.788 seconds
      Write 565200 bytes to flash (1104 pages)
      [ ] 0% (0/1104 pages)
      SAM-BA operation failed
      pi@BAP:~/BOSSA $ ~/BOSSA/bin/bossac -e -w -v -b /opt/dsf/sd/sys/Duet3Firmware_MB6HC.bin
      Erase flash

      Done in 3.771 seconds
      Write 478824 bytes to flash (936 pages)
      [ ] 0% (0/936 pages)
      SAM-BA operation failed
      pi@BAP:~/BOSSA $

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

        @jdumoulin said in Cannot get in Duet 3 web server after upgrade:

        [ ] 0% (0/936 pages)
        SAM-BA operation failed

        last guy who had that problem succeeded with another USB cable, could be worth a try

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

          Are you saying that the RPi recognises the Bossa port, but Windows doesn't? That's odd.

          Remember to remove the Erase jumper again before you flash the firmware using Bossa.

          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

          jdumoulinundefined 1 Reply Last reply Reply Quote 0
          • jdumoulinundefined
            jdumoulin @A Former User
            last edited by

            @bearer
            I tried three different cables.

            A Former User? 1 Reply Last reply Reply Quote 0
            • jdumoulinundefined
              jdumoulin @dc42
              last edited by

              @dc42

              I don't know. The rpi acts like it but it fails.

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

                @jdumoulin said in Cannot get in Duet 3 web server after upgrade:

                I tried three different cables.

                try adding a -d in the commandline for bossac - it won't help the flashing succeed but it might give some insight as to why it fails.

                and three cables may seem like one should work, but its not been the first time someone on this forum have found the fourth to work. although testing the cable with another device and checking to see if it provides both power and (high speed) data should suffice to rule out bad cabling.

                jdumoulinundefined 1 Reply Last reply Reply Quote 0
                • jdumoulinundefined
                  jdumoulin @A Former User
                  last edited by

                  @bearer So all three cables worked because the 4th do anything. I did add -d with one of the other cables. I didnt copy the entire result ...I left out a few hundred identical "readWord(addr=0x400e0c08)=0"

                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0
                  readWord(addr=0x400e0c08)=0x1

                  Done in 3.799 seconds
                  Write 565200 bytes to flash (1104 pages)
                  [ ] 0% (0/1104 pages)write(addr=0x20401034,size=0x2 00)
                  writeWord(addr=0x20401028,value=0x400000)
                  writeWord(addr=0x2040102c,value=0x20401034)

                  SAM-BA operation failed
                  pi@BAP:~/BOSSA $

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

                    @jdumoulin said in Cannot get in Duet 3 web server after upgrade:

                    So all three cables worked because the 4th do anything.

                    thats not how troubleshooting works

                    jdumoulinundefined 1 Reply Last reply Reply Quote 0
                    • jdumoulinundefined
                      jdumoulin @A Former User
                      last edited by

                      @bearer said in Cannot get in Duet 3 web server after upgrade:

                      thats not how troubleshooting works

                      Well the 4th cable didnt make a connection at all. It could not find the device.

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

                        This is worth a try:

                        • Fit the Erase jumper
                        • Power up the Duet
                        • Press the Reset button
                        • Without powering down, remove the Erase jumper
                        • Try to flash the firmware using Bossa

                        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
                        • jdumoulinundefined
                          jdumoulin
                          last edited by

                          @dc42 said in Cannot get in Duet 3 web server after upgrade:

                          Without powering down, remove the Erase jumper

                          I did that this morning. Bossa com port did show up. No progress for over an hour nowCapture Bossa.JPG

                          deckingmanundefined 1 Reply Last reply Reply Quote 0
                          • deckingmanundefined
                            deckingman @jdumoulin
                            last edited by

                            @jdumoulin From the wiki https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware#Section_Fallback_procedure_Num_3.................

                            If using Bossa:

                            Check boxes Erase all, Lock, and Boot from Flash
                            

                            You screen shot shows no check marks on the erase all or lock (boot from flash is hidden).

                            Ian
                            https://somei3deas.wordpress.com/
                            https://www.youtube.com/@deckingman

                            jdumoulinundefined 1 Reply Last reply Reply Quote 0
                            • jdumoulinundefined
                              jdumoulin @deckingman
                              last edited by

                              @deckingman said in Cannot get in Duet 3 web server after upgrade:

                              You screen shot shows no check marks on the erase all or lock (boot from flash is hidden).

                              Still no love from the DuetCapture Duet 3 again.JPG

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

                                Does it just sit there doing nothing, or does it eventually give an error message?

                                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
                                • jdumoulinundefined
                                  jdumoulin
                                  last edited by

                                  @dc42 said in Cannot get in Duet 3 web server after upgrade:

                                  Does it just sit there doing nothing, or does it eventually give an error message?

                                  It just sits there. No error message

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

                                    I'm sorry, I think there is a problem with the processor on that board. Please ask your supplier to replace the Duet 3.

                                    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
                                    • A Former User?
                                      A Former User
                                      last edited by A Former User

                                      As bossac on the pi connects, and identifies the cpu could it be worth while trying to lower the baud rate? Seems its fixed at 921600 but code does allow for baud rates down to 1200. But does the SAM7x support lower baud rates? (or does the usb thing make it a moot point?)

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

                                        I've just found another tool for programming flash memory on a SAME70 at https://github.com/atmelcorp/micro-sam-ba. Unfortunately there is no executable file provided. I'll try building it later today, unless someone else beats me to it.

                                        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
                                        • A Former User?
                                          A Former User
                                          last edited by A Former User

                                          Needs to be built for cygwin if to be used on windows; for the pi its just git clone and make, no dependencies to deal with and the default image has the build tools it seems.

                                          Not sure if the last command is needed to get the processor out of boot from ROM mode, can't test it. (and I just realized this was the wrong thread, but if OP has a PI...)

                                          git clone https://github.com/atmelcorp/micro-sam-ba.git
                                          cd micro-sam-ba/
                                          make
                                          ./usamba /dev/ttyACM0 erase-all
                                          ./usamba /dev/ttyACM0 write /opt/dsf/sd/sys/Duet3Firmware_MB6HC.bin 0x400000
                                          #./usamba /dev/ttyACM0 gpnvm set 1
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA