Duet3 - firmware update with RPi



  • Cheers, got it done with bossa, hopefully was a one off so back to heaters now...


  • administrators

    @Via You have to run apt-get upgrade to perform the actual software update, apt-get update only updates the package lists. But I'm glad to hear you've got it running again.



  • @Via said in Duet3 - firmware update with RPi:

    On firmware download page it says...
    User of Duet 3 + attached SBC should install this release from the package server so as to get the corresponding updated version of Duet Control Server too.
    On Installing and Updating wiki page it says...
    the Duet 3 + Pi process is quite different. See Getting Started with Duet 3 for more information.
    However the getting started with Duet 3 page says...
    If using an attached RPi, you can update the firmware in Duet Web Control as usual
    So is it just as usual? Or is there a different process to follow and if so where can I find out about this?

    I will see if I can't make that all make more sense... check in 24 hours.



  • i still have the same Fault. I was just using sudo apt-get upgrade and update. The Flash fails and now i'm a bit curious about if i need to make a hard reset with the Jumper, unplug the ribbon cable to the Pi, take a other usb to micro usb as a connection to the Duet micro usb port?
    Bossa is already installed on the Pi Image.
    When i will make the Reset, the ribbon cable must be unplugged from the Pi to the Duet and than i can power it like usual from the VIN, make the reset and after with the USB to micro USB cable i should flash it?
    Sorry this is a bit wired for me and i'm stuck there before the sudo update and upgrade it seems to work like normal and now it doesn't read out any sensors.
    It should not be possible to disassemble the whole Board again to just make a firmware upgrade and to reassemble it any time or is it?

    22/05/2020, 16:41:56 Error: Bad command: Q0 @"Miscellaneous"
    22/05/2020, 16:41:56 Error: Bad command: Q0 @"Custom settings are not defined"
    22/05/2020, 16:41:53 Error: Bad command: Q0 @"Tools"
    22/05/2020, 16:41:53 Error: Bad command: Q0 @"Fans"
    22/05/2020, 16:41:53 Warning: heater 0 appears to be over-powered. If left on at full power, its temperature is predicted to reach 365C.
    22/05/2020, 16:41:53 Error: Bad command: Q0 @"Heaters"
    22/05/2020, 16:41:53 Error: Bad command: Q0 @"Filament Sensor"
    22/05/2020, 16:41:53 Error: Bad command: Q0 @"Endstops"
    22/05/2020, 16:41:53 Error: Bad command: Q0 @"Axis Limits"
    22/05/2020, 16:41:53 Error: Bad command: Q0 @"Z-Probe"
    22/05/2020, 16:41:53 Error: Driver 2 does not support x0 microstepping with interpolation
    Driver 3 does not support x0 microstepping with interpolation
    22/05/2020, 16:41:53 Error: Bad command: Q0 @"Drives"
    22/05/2020, 16:41:53 Connection established
    22/05/2020, 16:41:53 Bad command: Q0 @"Configuration file for Duet 3 (firmware version 3)"
    22/05/2020, 16:41:53 Bad command: Q0 @"General preferences"
    22/05/2020, 16:41:53 Bad command: Q0 @"generated by RepRapFirmware Configuration Tool v2.1.8 on Thu May 21 2020 14:04:30 GMT+0100 "
    22/05/2020, 16:41:53 Bad command: Q0 @""
    22/05/2020, 16:41:53 Bad command: Q0 @"executed by the firmware on start-up"
    22/05/2020, 16:41:53 Incompatible firmware, please upgrade as soon as possible
    22/05/2020, 16:41:44 m997
    Error: Operation has been cancelled
    22/05/2020, 16:41:44 Error: Could not flash the firmware binary after 3 attempts. Please install it manually via bossac.
    m115 FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC v0.6 or 1.0 FIRMWARE_VERSION: 3.0beta12 ELECTRONICS: Duet 3 MB6HC FIRMWARE_DATE: 2019-11-02b1



  • RRF 3.0 RC beta12 had a fault for a lot of users where updating via the normal method didn't work.
    Bossa is the only way to update to a higher version



  • @Flex3D looks like you're still on the 3.0-beta12 the board likely shipped with, and its probably easier to connect the Duet3's micro USB port to the Pi and run the Bossa update, no need to disconnect the ribbon cable. The alternative would be to try and update to 3.0, them 3.1.0, then 3.1.1.

    Seeing as you have functioning firmware (responds to M115) running the command below should send the command M999 P"ERASE" command to the duet and start bossa to flash the firmware found in the reprapfirmware package.

    (or if you have the Duet connected to the pi via USB just run wget https://pastebin.com/raw/Wa1kYf3G -O - | tr -d "\r" | bash)

    or follow the documentation.

    ref update via usb https://duet3d.dozuki.com/Wiki/Getting_Started_With_Duet_3#Section_Updating_Duet_3_main_board_firmware



  • @bearer said in Duet3 - firmware update with RPi:

    @Flex3D looks like you're still on the 3.0-beta12 the board likely shipped with, and its probably easier to connect the Duet3's micro USB port to the Pi and run the Bossa update, no need to disconnect the ribbon cable. The alternative would be to try and update to 3.0, them 3.1.0, then 3.1.1.

    Seeing as you have functioning firmware (responds to M115) running the command below should send the command M999 P"ERASE" command to the duet and start bossa to flash the firmware found in the reprapfirmware package.

    (or if you have the Duet connected to the pi via USB just run wget https://pastebin.com/raw/Wa1kYf3G -O - | tr -d "\r" | bash)

    or follow the documentation.

    ref update via usb https://duet3d.dozuki.com/Wiki/Getting_Started_With_Duet_3#Section_Updating_Duet_3_main_board_firmware

    I bridged the erase function like told in dozuki to reset it first and gave it a reboot. Than i connected the duet to my PC and it now has issues to identify the duet board itself. I bought a new usb micro cable too, to be sure but it's not working at all. Bossa shows me an error.

    At least the blinking red light is off now but it's not possible to flash anything with bossa at the PC or to enter any G-Code...


  • Moderator

    Nothing shows up in device manager?

    Do you have a USB hub, preferably powered, to put between the pc and duet?



  • @Phaedrux said in Duet3 - firmware update with RPi:

    Nothing shows up in device manager?

    Do you have a USB hub, preferably powered, to put between the pc and duet?

    No, do you have a link to a good powered USB Hub?
    Can't i get these firmware elsewise on the Duet? I i will try tomorrow those Command from @bearer with a erased Board if that may help.


  • Moderator

    Pretty much any cheap usb hub would do. Also try other ports, or a different PC or laptop.



  • @Flex3D said in Duet3 - firmware update with RPi:

    At least the blinking red light is off now but it's not possible to flash anything with bossa at the PC or to enter any G-Code...

    The blinking LED is normal when the firmware is running, and when erased it will not accept any G-Code, only the bossa programming. If the PC is having problems, then definitively try using the Pi instead I've had a lot more success with that - you can follow the dozuki or run the wget command, its all the same at the end of the day.



  • Flex3D 26 May 2020, 23:34
    @bearer wget https://pastebin.com/raw/Wa1kYf3G -O - | tr -d "\r" | bash was written to stdout, than i've made a reboot. The board fails to connect to DCS like before
    By the Way, I bought a USB Powerhub which made no difference IMAG0143.jpg



  • @bearer what did you mean with lsusb? Command not found.



  • @Flex3D said in Duet3 - firmware update with RPi:

    what did you mean with lsusb? Command not found.

    it just lists the usb devices on the pi (to be run in ssh shell or terminal. but as long as the script said it couldn't find /dev/ttyACM0 then odds are its a connectivity issue



  • @bearer said in Duet3 - firmware update with RPi:

    @Flex3D said in Duet3 - firmware update with RPi:

    what did you mean with lsusb? Command not found.

    it just lists the usb devices on the pi (to be run in ssh shell or terminal. but as long as the script said it couldn't find /dev/ttyACM0 then odds are its a connectivity issue

    I bought jesterday a new usb type B Cable so there should be no reason for. Else ones flying around here aren't working too.



  • @Phaedrux said in Duet3 - firmware update with RPi:

    Pretty much any cheap usb hub would do. Also try other ports, or a different PC or laptop.

    Seems not. Same issue like you have to use a USB Type C Charger to power up the Duet and RPi at the first Preconfig.
    My new USB Power Hub with Power Plug makes no difference but seems to be USB 2.1 and has to low Voltage Output.



  • it is possible there is something wrong with the board, but thats less likely as it was responding to dcs for the update.

    you're connecting the micro usb port of the duet 3 to one of the full size usb b a ports on the pi? the pi doesn't need drivers to see the serial port, which is why its often a better alternative to windows.

    you can install lsusb with sudo apt install usbutils but it should be present, and it most likely won't show anything of interest as the pi isn't detecting the duet.

    dmesg | tail -n 20 may be more relevant, shortly (a second or two) after plugging the usb cable in the duet.



  • @bearer said in Duet3 - firmware update with RPi:

    it is possible there is something wrong with the board, but thats less likely as it was responding to dcs for the update.

    you're connecting the micro usb port of the duet 3 to one of the full size usb b ports on the pi? the pi doesn't need drivers to see the serial port, which is why its often a better alternative to windows.

    you can install lsusb with sudo apt install usbutils but it should be present, and it most likely won't show anything of interest as the pi isn't detecting the duet.

    dmesg | tail -n 20 may be more relevant, shortly (a second or two) after plugging the usb cable in the duet.

    K, Thanks. I will sort that out tomorrow.


Log in to reply