@chrishamm Sorry I walked away for a few days. It looks like @Phaedrux linked you some/the places in the docs.
I have no idea what the problem is or what I'm missing but this stupid board is still a paperweight.
In Diag mode (at least connected to Win 10 Pro) the MicroSD card being installed matters a lot. Right now the red diag led is faint/dimly lit and the erase jumper pins are open. On Win10pro with no microsd card I get "unknown usb device" in the windows device manager (device driver is installed). With the microsd card installed (doesn't seem to matter whether the microsd card is formatted, blank, has data on it, etc. it's just whether or not a microsd card is present in the board) So with the microsd card installed, win10pro sees "Bossa Program Port (COM10)"... But then I get: Error: "Could not connect to device on COM10".
If I right click and run elevated same thing: could not connect to device on COM10.
Not sure if it matters --the physical machine is an old Dell Optiplex 755. It's something I dug out and put a clean windows image on for this firmware issue. I believe it's a USB2.0 port. The Dell machine is old, mfg. date says 01/15/08 so I don't think there should be any compatibility issues. So Win10pro I'm having no luck with SAM-BA or BOSSA. I can see the board in device manager, it's recognised, etc. it just won't connect.
I then tried it on an Ubuntu 20.04 machine and an Ubuntu 18.04 machine. There seemed to be no difference between the two operating systems. The only thing I noticed was that was a little strange was that SAM-BA would only run the 64-bit application. The 32-bit would not open. The 64-bit would open and then as soon as I hit connect, the dialog box would vanish and the program would quit.
With BOSSA on Ubuntu 20.04: The documentation says update & install, etc. and FYI in Ubuntu 20.04, package libwxgtk3.0-dev has changed to libwxgtk3.0-gtk3-dev so you get a "no install candidate" error with libwxgtk3.0-dev. So with BOSSA, the way that you suggested in your post above: (sudo curl -L... etc.) I think something similar to the SAM-BA 32/64-bit thing is happening.
When I ran
bossac -e -w -v -b /home/user/Desktop/Duet3/Duet3Firmware_MB6HC.bin
I got back:
bash: /usr/bin/bossac: cannot execute binary file: Exec format error
When I ran with sudo:
sudo bossac -e -w -v -b /home/user/Desktop/Duet3/Duet3Firmware_MB6HC.bin
I got back:
/usr/bin/bossac: 1: Syntax error: word unexpected (expecting ")")
A brief Google search shows that you often get the syntax word unexpected error when you are trying to run a 32-bit binary/program on a 64-bit OS (or the other way around)... Since I also was getting something weird with SAM-BA where the 32-bit would not open and the 64-bit would open, then closed upon attempted connection (similar to what I was getting in Win10pro, disconnect after cannot connect).
Is this a 32 vs 64 bit issue?
Next I tried a Pi 3B+ with the Duet Pi.zip (I am typing this from the desktop on the DuetPi).
pi@duet3:~ $ bossac -e -w -v -b /home/pi/Desktop/Duet3Firmware_MB6HC.bin
No device found on /dev/ttyACM0
pi@duet3:~ $ sudo bossac -e -w -v -b /home/pi/Desktop/Duet3Firmware_MB6HC.bin
No device found on /dev/ttyACM0
pi@duet3:~ $ ls -l /dev/tty*
crw-rw-rw- 1 root tty 5, 0 May 13 20:02 /dev/tty
crw--w---- 1 root tty 4, 0 May 13 20:02 /dev/tty0
crw------- 1 pi tty 4, 1 May 13 20:02 /dev/tty1
crw--w---- 1 root tty 4, 10 May 13 20:02 /dev/tty10
crw--w---- 1 root tty 4, 11 May 13 20:02 /dev/tty11
crw--w---- 1 root tty 4, 12 May 13 20:02 /dev/tty12
crw--w---- 1 root tty 4, 13 May 13 20:02 /dev/tty13
crw--w---- 1 root tty 4, 14 May 13 20:02 /dev/tty14
crw--w---- 1 root tty 4, 15 May 13 20:02 /dev/tty15
crw--w---- 1 root tty 4, 16 May 13 20:02 /dev/tty16
crw--w---- 1 root tty 4, 17 May 13 20:02 /dev/tty17
crw--w---- 1 root tty 4, 18 May 13 20:02 /dev/tty18
crw--w---- 1 root tty 4, 19 May 13 20:02 /dev/tty19
crw--w---- 1 root tty 4, 2 May 13 20:02 /dev/tty2
crw--w---- 1 root tty 4, 20 May 13 20:02 /dev/tty20
crw--w---- 1 root tty 4, 21 May 13 20:02 /dev/tty21
crw--w---- 1 root tty 4, 22 May 13 20:02 /dev/tty22
crw--w---- 1 root tty 4, 23 May 13 20:02 /dev/tty23
crw--w---- 1 root tty 4, 24 May 13 20:02 /dev/tty24
crw--w---- 1 root tty 4, 25 May 13 20:02 /dev/tty25
crw--w---- 1 root tty 4, 26 May 13 20:02 /dev/tty26
crw--w---- 1 root tty 4, 27 May 13 20:02 /dev/tty27
crw--w---- 1 root tty 4, 28 May 13 20:02 /dev/tty28
crw--w---- 1 root tty 4, 29 May 13 20:02 /dev/tty29
crw--w---- 1 root tty 4, 3 May 13 20:02 /dev/tty3
crw--w---- 1 root tty 4, 30 May 13 20:02 /dev/tty30
crw--w---- 1 root tty 4, 31 May 13 20:02 /dev/tty31
crw--w---- 1 root tty 4, 32 May 13 20:02 /dev/tty32
crw--w---- 1 root tty 4, 33 May 13 20:02 /dev/tty33
crw--w---- 1 root tty 4, 34 May 13 20:02 /dev/tty34
crw--w---- 1 root tty 4, 35 May 13 20:02 /dev/tty35
crw--w---- 1 root tty 4, 36 May 13 20:02 /dev/tty36
crw--w---- 1 root tty 4, 37 May 13 20:02 /dev/tty37
crw--w---- 1 root tty 4, 38 May 13 20:02 /dev/tty38
crw--w---- 1 root tty 4, 39 May 13 20:02 /dev/tty39
crw--w---- 1 root tty 4, 4 May 13 20:02 /dev/tty4
crw--w---- 1 root tty 4, 40 May 13 20:02 /dev/tty40
crw--w---- 1 root tty 4, 41 May 13 20:02 /dev/tty41
crw--w---- 1 root tty 4, 42 May 13 20:02 /dev/tty42
crw--w---- 1 root tty 4, 43 May 13 20:02 /dev/tty43
crw--w---- 1 root tty 4, 44 May 13 20:02 /dev/tty44
crw--w---- 1 root tty 4, 45 May 13 20:02 /dev/tty45
crw--w---- 1 root tty 4, 46 May 13 20:02 /dev/tty46
crw--w---- 1 root tty 4, 47 May 13 20:02 /dev/tty47
crw--w---- 1 root tty 4, 48 May 13 20:02 /dev/tty48
crw--w---- 1 root tty 4, 49 May 13 20:02 /dev/tty49
crw--w---- 1 root tty 4, 5 May 13 20:02 /dev/tty5
crw--w---- 1 root tty 4, 50 May 13 20:02 /dev/tty50
crw--w---- 1 root tty 4, 51 May 13 20:02 /dev/tty51
crw--w---- 1 root tty 4, 52 May 13 20:02 /dev/tty52
crw--w---- 1 root tty 4, 53 May 13 20:02 /dev/tty53
crw--w---- 1 root tty 4, 54 May 13 20:02 /dev/tty54
crw--w---- 1 root tty 4, 55 May 13 20:02 /dev/tty55
crw--w---- 1 root tty 4, 56 May 13 20:02 /dev/tty56
crw--w---- 1 root tty 4, 57 May 13 20:02 /dev/tty57
crw--w---- 1 root tty 4, 58 May 13 20:02 /dev/tty58
crw--w---- 1 root tty 4, 59 May 13 20:02 /dev/tty59
crw--w---- 1 root tty 4, 6 May 13 20:02 /dev/tty6
crw--w---- 1 root tty 4, 60 May 13 20:02 /dev/tty60
crw--w---- 1 root tty 4, 61 May 13 20:02 /dev/tty61
crw--w---- 1 root tty 4, 62 May 13 20:02 /dev/tty62
crw--w---- 1 root tty 4, 63 May 13 20:02 /dev/tty63
crw--w---- 1 root tty 4, 7 May 13 20:02 /dev/tty7
crw--w---- 1 root tty 4, 8 May 13 20:02 /dev/tty8
crw--w---- 1 root tty 4, 9 May 13 20:02 /dev/tty9
crw-rw---- 1 root dialout 166, 0 May 13 20:13 /dev/ttyACM0
crw-rw---- 1 root dialout 204, 64 May 13 20:02 /dev/ttyAMA0
crw------- 1 root root 5, 3 May 13 20:02 /dev/ttyprintk
pi@duet3:~ $ sudo bossac -e -w -v -b /home/pi/Desktop/Duet3Firmware_MB6HC.bin
No device found on /dev/ttyACM0
pi@duet3:~ $ lsusb
Bus 001 Device 004: ID 03eb:6124 Atmel Corp. at91sam SAMBA bootloader
Bus 001 Device 006: ID 0461:4d08 Primax Electronics, Ltd
Bus 001 Device 005: ID 413c:2107 Dell Computer Corp.
Bus 001 Device 007: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@duet3:~ $
Is this thing just a junk paperweight? What am I missing? With the DuetPi OS, all I did was connect it to the internet, update it & reboot, add the username (pi) to the dialout group, and then I ran:
sudo curl -L "https://github.com/Duet3D/DuetPi/blob/master/stage-dsf/00-system/files/bossac?raw=true
" -o /usr/bin/bossac
and
bossac -e -w -v -b /opt/dsf/sd/firmware/Duet3Firmware_MB6HC.bin
I'm at a bit of a loss. I need to start hooking up wiring/electric on this machine. If I can't get this board to be functional in the next 24-48 hours I'm going to have to buy a different board. This is ridiculous. What needs to be done to flash firmware on a MB6HC board that has been erased and is in diag mode?