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

    Help with HTTP Error 500 on Duet 3D

    Scheduled Pinned Locked Moved
    General Discussion
    4
    30
    1.4k
    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.
    • A Former User?
      A Former User
      last edited by A Former User

      edit

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

        Looks like the Bossa port is showing in Device Manager but the connection isn't reliable. Try again with a different USB cable. Note, Bossa only scans the USB ports when it starts up, and when you click Refresh, so you may have to click Refresh to make the port appear.

        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
        • Jim46undefined
          Jim46
          last edited by

          Potential progress
          When plugging my USB3 cable into PC and Duet, a Windows message pops up saying it doesn't recognize the device...anyway something like that. Ordering a new USB3 cable tonight just in case.
          BOSSA didn't pop up when the Duet was connected to the PC in every UBS plug, so I launched it directly. Finally got COM3 port to show up.
          What do I do next?
          IMG_5145.JPG

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

            You'll need this bin file: https://github.com/dc42/RepRapFirmware/releases/download/3.01-RC10/Duet3Firmware_MB6HC.bin

            After downloading it, verify that it is 553 KB in size.

            Select the file in bossa.

            Check boxes Erase all, Lock, and Boot from Flash

            When the write completes, press Verify

            Let's start with that.

            Then on your SD card, you'll need to have the DWC 2.1.5 files in the /www folder from here: https://github.com/dc42/RepRapFirmware/releases/download/3.01-RC10/DuetWebControl-SD-2.1.5.zip

            While you're at it, download this file and place it in the /sys folder of the SD card: https://github.com/dc42/RepRapFirmware/releases/download/3.01-RC10/Duet3_SDiap_MB6HC.bin

            Z-Bot CoreXY Build | Thingiverse Profile

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

              @Jim46 said in Help with HTTP Error 500 on Duet 3D:

              BOSSA didn't pop up when the Duet was connected to the PC in every UBS plug, so I launched it directly.

              The BOSSA program is not made to start automatically when connecting the Duet, you will have to launch it yourself every time it is needed (hopefully just this once)

              1 Reply Last reply Reply Quote 0
              • Jim46undefined
                Jim46 @Phaedrux
                last edited by

                @Phaedrux
                The 3.01-RC10/Duet3Firmware_MB6HC was successfully downloaded and remains in the download file. It is 553.3 KB.
                The next step of trying to check boxes allowed the Erase All, Lock and Boot TO Flash. When clicking Write, it produces this error...
                IMG_5149.JPG
                So, what does it mean SAM-BA operation failed? BTW, the formatted microSD card is in the Duet3.
                Thanks again,
                Jim

                A Former User? dc42undefined 2 Replies Last reply Reply Quote 0
                • A Former User?
                  A Former User @Jim46
                  last edited by A Former User

                  @Jim46 said in Help with HTTP Error 500 on Duet 3D:

                  So, what does it mean SAM-BA operation failed?

                  can't say for sure, try again and while you do that I'll type some more.

                  edit:
                  to find more information we need to run the command line version and enable debug output (if trying again didn't work)

                  find "Command Prompt" on your start menu and run it (search for cmd if you can't find it)
                  it opens a new black window with a prompt.
                  copy this into it:
                  "%programfiles(x86)%\BOSSA\bossac" --port=COM3 -d -e -w -v -b Downloads\Duet3Firmware_MB6HC.bin -R

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

                    @Jim46 said in Help with HTTP Error 500 on Duet 3D:

                    So, what does it mean SAM-BA operation failed?

                    It can mean that the port was present when you loaded Bossa, then it disappeared. It may have come back, but unfortunately Bossa won't reconnect to it automatically. Click Refresh and then select the COM port again in the Serial Port box.

                    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
                    • Jim46undefined
                      Jim46
                      last edited by

                      IMG_5152.JPG

                      I ran the CMG with the code you gave me. It says no device found on COM3, yet the BOSSA says it connected and recogonizes the chip.
                      What next

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

                        @Jim46 said in Help with HTTP Error 500 on Duet 3D:

                        I ran the CMG with the code you gave me. It says no device found on COM3, yet the BOSSA says it connected and recogonizes the chip.
                        What next

                        if you try both at the same time, then that would be the reason, cannot access COM3 form two applications at the same time.

                        First do as dc42 suggested, click refresh in the graphical BOSSA to re-identify the Duet. Then click write.

                        If it fails again close the graphical BOSSA window and retry the command please.

                        (hmm, the error message is a bit ambiguous as it points to the problem being the target, I'll file an issue with the BOSSA developer to help make it clearer as I tested you get a different (more) output if the port is free but has no target)

                        1 Reply Last reply Reply Quote 0
                        • Jim46undefined
                          Jim46
                          last edited by

                          Hey Bearer,
                          I've shut down BOSSA as it would just sit there after the write command.
                          Its probably a good idea to share the experience with the BOSSA developer. I''ve ordered new USB 3.0 microUSB cables and should have them on Monday to hopefully remove the current cable as being a potential problem.
                          It would be a good idea also to let them see the BOSSA screen as I saw it on 29 Apr 2020, 18:32 ...Potential progress... as the screen is all crunched up on the bottom and you can't see the check boxes. I'm running an HP Pavillion Elite e9220y (with Windows 10) APCI x64 based PC with AMD Phenom II x4 910 Processors (4).

                          1 Reply Last reply Reply Quote 0
                          • Jim46undefined
                            Jim46
                            last edited by

                            Just ran the BOSSA screen again with the boxes checked, I launched it. and it came back with the Error File Operation Exceeds Flash size.

                            1 Reply Last reply Reply Quote 0
                            • Jim46undefined
                              Jim46
                              last edited by

                              I shut down the BOSSA screen and went to CMG and ran the given code.
                              it ran and gave the following...
                              IMG_5153.JPG
                              did it work and what next?
                              thanks
                              Jim

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

                                de ja vous?
                                https://forum.duet3d.com/post/142914

                                can you find that USB cable and try it again?

                                1 Reply Last reply Reply Quote 0
                                • Jim46undefined
                                  Jim46
                                  last edited by

                                  New 2.0 cable arrived today. This the result of the CMG commands
                                  IMG_5158.JPG
                                  Looks like it made progress. what next?

                                  1 Reply Last reply Reply Quote 0
                                  • Jim46undefined
                                    Jim46
                                    last edited by

                                    Bearer,
                                    I've lost your message,
                                    J

                                    1 Reply Last reply Reply Quote 0
                                    • Jim46undefined
                                      Jim46
                                      last edited by

                                      Motor wiring verified with paperclip test
                                      G92 X0 Y0 Z0 performed
                                      Motors do not turn
                                      They do spin freely when turned by hand

                                      ; Configuration file for Duet 3 (firmware version 3)
                                      ; executed by the firmware on start-up
                                      ;
                                      ; generated by RepRapFirmware Configuration Tool v2.1.8 on Mon May 04 2020 10:26:28 GMT-0600 (Mountain Daylight Time)
                                      
                                      ; General preferences
                                      G90                            ; send absolute coordinates...
                                      M83                            ; ...but relative extruder moves
                                      M550 P"My Printer"             ; set printer name
                                      
                                      ; Network
                                      M552 P0.0.0.0 S1               ; enable network and acquire dynamic address via DHCP
                                      M586 P0 S1                     ; enable HTTP
                                      M586 P1 S0                     ; disable FTP
                                      M586 P2 S0                     ; disable Telnet
                                      
                                      ; Drives
                                      M569 P0.0 S1                   ; physical drive 0.0 goes forwards
                                      M569 P0.1 S1                   ; physical drive 0.1 goes forwards
                                      M569 P0.2 S1                   ; physical drive 0.2 goes forwards
                                      M584 X0.0 Y0.1 Z0.2            ; set drive mapping
                                      M350 X16 Y16 Z16 I1            ; configure microstepping with interpolation
                                      M92 X53.33 Y53.33 Z53.33       ; set steps per mm
                                      M566 X900.00 Y900.00 Z12.00    ; set maximum instantaneous speed changes (mm/min)
                                      M203 X6000.00 Y6000.00 Z180.00 ; set maximum speeds (mm/min)
                                      M201 X500.00 Y500.00 Z20.00    ; set accelerations (mm/s^2)
                                      M906 X800 Y800 Z800 I30        ; set motor currents (mA) and motor idle factor in per cent
                                      M84 S30                        ; Set idle timeout
                                      
                                      ; Axis Limits
                                      M208 X0 Y0 Z0 S1               ; set axis minima
                                      M208 X1000 Y1000 Z1000 S0      ; set axis maxima
                                      
                                      ; Endstops
                                      ; WARNING: No endstops configured
                                      
                                      ; Z-Probe
                                      M558 P0 H5 F120 T6000          ; disable Z probe but set dive height, probe speed and travel speed
                                      M557 X0:1000 Y0:1000 S20       ; define mesh grid
                                      
                                      ; Heaters
                                      
                                      ; Fans
                                      
                                      ; Tools
                                      
                                      ; Custom settings are not defined
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • Phaedruxundefined
                                        Phaedrux Moderator
                                        last edited by

                                        Hi Jim, glad to see that Bearer was able to get you sorted on the firmware front. Also, sorry to see you're having some issues with the motors.

                                        At this point, due to the very long nature of your journey to get to this point the info needed is rather spread out. Can I ask that you create a new thread and include the following details up front so that we can take a fresh run at your new issue.

                                        Please include details on which Duet board you have, how things are connected (photos would be great), firmware versions for the Duet, DWC, and Pi if used. Include your config.g as well. And details on what the problem is and what you've so far tried in trouble shooting. Since there is a possibility of hardware failure please also provide some high res well lit close up photos of both sides of the board so that we may be able to spot any burnt up components.

                                        Z-Bot CoreXY Build | Thingiverse Profile

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

                                          Also, on a lark, please try adding an endstop definition to config.g and trying G92 X0 Y0 Z0 again.

                                          ; Endstops
                                          M574 X1 S1 P"xstop"
                                          M574 Y1 S1 P"ystop"
                                          M574 Z1 S1 P"zstop"
                                          

                                          Z-Bot CoreXY Build | Thingiverse Profile

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