Duet3 Bossa firmware flash fails
-
Duet3 MB6HC 1.0 (3.0beta12)
I received this board and out of box everything worked until I attempted to flash it over ethernet via DWC. The board stopped responding over ethernet and USB (I read earlier that the ethernet is unreliable in 3.0 beta).
I followed steps for flashing board using Bossa 1.9.1 but it always returns 'Flash failed' at 6%.
- Reboot with Erase jumper installed.
- Remove Erase jumper.
- Attempt to flash with Bossa either through UI or command line fails.
$ sudo bossac -e -w -v -b -d -U -p cu.usbmodem144201 ./Duet3Firmware_MB6HC.bin -R
...
go(addr=0x20401020)
writeWord(addr=0x400e0c04,value=0x5a004301)
[= ] 6% (68/1110 pages)write(addr=0x20401034,size=0x200)
writeWord(addr=0x20401028,value=0x408800)
writeWord(addr=0x2040102c,value=0x20401034)
readWord(addr=0x400e0c08)=0x469c4662Flash command failed
Any ideas? Verify also fails, but read succeeds.
-
Your input file is './Duet3Firmware_MB6HC.bin' Where did that originate?
Also you have the -U -p and -R flags specified. You don't need them. In particular, bossac will auto discover the port. Try:
bossac -e -w -v -b /opt/dsf/sd/sys/Duet3Firmware_MB6HC.bin
-
@judicar the only other instance of something similar I've seen was resolved by trying another usb cable. It's it the exact same address it falls at each time?
-
@bearer It fails at different points with different versions of firmware. I assume 0x400e0c08 is some register that contains the result of whatever operation its trying to perform.
-
Odd, the target is "dead" and shouldn't react differently afaik.
I suspect @droftarts may know a thing (or 2000) about this. Meanwhile I'd give another cable a go.
-
@Danal I should've mentioned this running standalone
-
Standalone when running, got it. At the same time, per the "sudo" you are bossac-ing from unix/linux/pi, correct? If so, I would seriously consider changing the flags.
And, as mentioned above, try different USB cables.
-
Looks like it's a bug in the macOS/BSD version of Bossa. Dug up an old pc and it flashes fine with the Windows version. Thanks for the assistance.
-
If you kept the complete debug output could you add it to pastebin or directly in the issue on github, maybe it helps get it fixed.
https://github.com/shumatech/BOSSA/issues/106
(or if you wanna get down and dirty try testing https://github.com/shumatech/BOSSA/pull/121 if you only
make bossac
it shouldn't have dependencies) -
@bearer Will do!
-
@judicar Yes, current version of Bossa 1.9.1 on Mac OS seems to be broken for Duet 3. Has been reported here https://github.com/shumatech/BOSSA/issues/106 but there doesn't seem to be much activity on the bossa github.
Please let us know if you recompile it with that fix, and it works.
Ian