Upgrading PanelDue from a Raspberry Pi?



  • Hi,
    I just received a PanelDue 5i (yay!) and there is a firmware update available (yay!).

    The update instructions describe using bossac on a Windows computer, which I don't have. Is there a way to do the firmware upgrade on the PanelDue from a Raspberry Pi (the most ubiquituous computing resource in this house)?



  • I've done it on a MacBook with this command:
    bossac --port /dev/tty.usbmodem1451 --info --erase --write --verify --boot PanelDue-v2-5.0.bin --reset

    I'm not aware of any Linux binaries - so you probably have to build bossa from source.


  • administrators

    @oliof this might point you in the right direction:

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



  • @T3P3Tony thanks! I found out in the meanwhile that threre is an official build (it's on their GitHub releases page) that runs on Raspberry Pi for bossa 1.7.1; is there a minimum version requirement the use with the paneldue?


  • administrators

    @oliof said in Upgrading PanelDue from a Raspberry Pi?:

    @T3P3Tony thanks! I found out in the meanwhile that threre is an official build (it's on their GitHub releases page) that runs on Raspberry Pi for bossa 1.7.1; is there a minimum version requirement the use with the paneldue?

    Yes, you need at least version 1.8.



  • Success! At least it compiled (after I installed libreadline, wxwidgets already lingered on the pi)...

    0_1560679954200_Screenshot 2019-06-16 at 12.11.30.png

    Is there a non-destructive way to test whether the PanelDue likes this version of bossa? I'm a bit worried since the instructions to update start with erasing the current firmware.


  • administrators

    @oliof said in Upgrading PanelDue from a Raspberry Pi?:

    Is there a non-destructive way to test whether the PanelDue likes this version of bossa? I'm a bit worried since the instructions to update start with erasing the current firmware.

    No, because you need to clear at least the "Boot from flash" but in the MCU to get it to present the Bossa port.



  • OK, I tried to follow the upgrade instructions at https://miscsolutions.wordpress.com/paneldue/.

    After pressing the erase button for a second, I get a white screen, and pressing the reset button, A serial device registers on my Raspberry Pi:

    [Sun Jun 16 16:48:19 2019] usb 1-1.3: USB disconnect, device number 17
    [Sun Jun 16 16:48:20 2019] usb 1-1.3: new full-speed USB device number 18 using dwc_otg
    [Sun Jun 16 16:48:20 2019] usb 1-1.3: New USB device found, idVendor=03eb, idProduct=6124
    [Sun Jun 16 16:48:20 2019] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [Sun Jun 16 16:48:20 2019] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
    

    But bossac does not find a device, nor does it like the ACM device if I specify it directly:

    root@octopi:~# bossac -e -w -v -b /home/pi/PanelDue-5.0i-7.0i.bin 
    Auto scan for device failed
    Try specifying a serial port with the '-p' option
    root@octopi:~# bossac -p /dev/ttyACM0 -e -w -v -b /home/pi/PanelDue-5.0i-7.0i.bin 
    No device found on /dev/ttyACM0
    root@octopi:~# 
    

    I will try to get hold of a windows computer to try from there ...



  • It's good to have friends nearby that can help out quickly (-:

    $ "C:\Program Files (x86)\BOSSA\bossac.exe" --port=COM3 -e -w -v -b PanelDue-5.0i-7.0i.bin
    Erase flash
    
    Done in 1.038 seconds
    Write 168276 bytes to flash (329 pages)
    [==============================] 100% (329/329 pages)
    Done in 5.911 seconds
    Verify 168276 bytes of flash
    [==============================] 100% (329/329 pages)
    Verify successful
    Done in 4.854 seconds
    Set boot flash true
    

 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.