DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1
-
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
Please make an SD card image available that works
Unfortunately, that is not anywhere near as easy as it sounds. The software on the SD has to match the firmware on the board well enough for them to talk. There are so many variants that a ton of images might actually become more confusing than not. Over time, this will all get better as 'apt update' and 'apt upgrade' get better and better at keeping everything in sync.
But... right now today, because you chose to "force" the card into a given state, by wiping and re-etching, then the burden also falls on you to "force" the board into a matching state, via bossa.
Step 1 is to get to get duetsoftwareframework on the SD to a whatever level you prefer.
sudo apt list duetsoftwareframework -a
Will show you all available levels, as well as what is installed.
sudo apt remove duetsoftwareframework sudo apt -s autoremove (-s is simulate, be sure it is removing what you want, then run it again without the -s) sudo apt install duetsofwareframework=1.3.2 (or whatever you want)
Will put everything at a certain level.
Step 2 is to bossa with the file found at /opt/dsf/sd/sys/Duet3Firmware_MB6HC.bin This ensures that the SD and the board firmware will match.
P.S. I prefer to bossa from the Pi itself. Instructions are on the dozuki.
P.P.S When picking the release you want in step 1... At this moment, I know of no way to correlate "duetsoftwareframework release x.y.z" to "firmware V3.01 RCxyz". I'm working on finding a way. -
@Danal said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
because you chose to "force" the card into a given state
I did NOT choose to - I was given no option because I could not start / access the system hardwired or otherwise !!
I have no desire to fall out over this, the code is RC after all, you expect glitches but things just really shouldn't be this difficult, I should NOT need to use BOSSA - another mechanism is required because I have ZERO intention of making up yet more cables.
Same principle as the Pi would be optimal - blank SD card, formatted FAT32, firmware image in root - same way a huge amount of embedded systems are updated - it isn't difficult.
-
In an ideal world you shouldn't have to no; but it is what it is, hopefully you can switch back to the stable package feed soon and stop dealing with the unstable stuff in the near future.
If you can run bossa from the pi
wget https://pastebin.com/raw/Wa1kYf3G -O - | tr -d "\r" | bash
takes care of everything from downloading and building bossa to flashing the binary that was downloaded when you installed the reprapfirmware package.Script will also send the Duet3 to the bootloader if it has a working reprapfirmware so shouldn't have to deal with jumpers unless something is really wrong.
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
because I have ZERO intention of making up yet more cables.
btw its just a plain micro usb cable needed. (with the caveat of avoiding multiple power supplies and potential ground loops - using the pi that is powered from the Duet is a convient way to achieve that)
-
@Garfield The only cable you should need for this is a standard USB-micro USB and using the instructions @bearer just posted.
If your particularly averse to this for whatever reason, you could make an SD to run the D3 in standalone mode and then just use either DWC to drag/drop the new firmware or use a USB cable and your favourite terminal program to run
M997 S0
(might want to check that, but I think that's right). Either way, there are a few options. That said, it'd probably be better to make threads and report the issues you're having so they can be addressed...? Other than one annoying bug with filaments, RC9 worked well for me. Have you got a list of issues you were having? -
I'm not averse - and should be up again soon, I'd really like to help with such problems and contriobute but right now the learning curve is pretty steep and what I think should be simple tasks seem not to be - and I do this **** for a living !! - I haven't coded in 20 years - got a team to do that ..... I'm back in learning mode here and I'm an old dog ....
-
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
....................... but right now the learning curve is pretty steep and what I think should be simple tasks seem not to be - and I do this **** for a living !!
My God, what chance do us mere mortals have! As far as I'm concerned, you guys are all talking in some foreign language that I don't understand. I'll be sticking with stand alone operation for quite some time yet methinks.
-
BOSSA .... No device found on /dev/ttyACM0 .....
-
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
BOSSA .... No device found on /dev/ttyACM0 .....
could just mean you have to use the erase jumper after all; it'd be interesting to see what
lsusb
says before and after applying the erase jumper.(maybe i should get around to finishing the version that checks the /sys/bus/usb/ tree for usb id's to avoid such a vague error)
-
@deckingman said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
....................... but right now the learning curve is pretty steep and what I think should be simple tasks seem not to be - and I do this **** for a living !!
My God, what chance do us mere mortals have! As far as I'm concerned, you guys are all talking in some foreign language that I don't understand. I'll be sticking with stand alone operation for quite some time yet methinks.
I wouldn't worry too much. All new things have to go through some field testing and improvements before they're ready for the masses, and the move to using a SBC with additional software is a pretty significant change.
I guess it's stuff like this that highlights where perhaps some tools need to be developed to automate these sort of processes, so the user doesn't need to know what's going on in the background. Perhaps in the first instance it'd be good to have some sort of command line UI for the Pi to automate switching versions quickly and easily - something along the lines of the rasp-config interface? I appreciate that's not necessarily going to work for cases where one or more parts of the system become unresponsive... -
@bearer said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
BOSSA .... No device found on /dev/ttyACM0 .....
could just mean you have to use the erase jumper after all; it'd be interesting to see what
lsusb
says before and after applying the erase jumper.(maybe i should get around to finishing the version that checks the /sys/bus/usb/ tree for usb id's to avoid such a vague error)
Is there any particular reason why using BOSSA on the Pi on a command line interface is being encouraged rather than the gui version on Windows? I used this the other day and it took longer to download BOSSA than it did to open the program and re-flash the firmware.
-
@ChrisP said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
Perhaps in the first instance it'd be good to have some sort of command line UI for the Pi to automate switching versions quickly and easily - something along the lines of the rasp-config interface? I
I think the solution is to get to the point where people who just need it to work can stay with the 3.1 stable version and for the learning curve on the unstable version to just be par for the course.
Sadly people who would have liked to stay on the 3.0 stable relase have been pushed onto the rollercoaster leading up to 3.1 due to issues with 3.0.
-
@bearer - sorry I had already erased
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubTrying to do this via the Pi first off - the Duet is too far from the PC (or my USB cables are too short - depends how you look at it)
-
@ChrisP said in [DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1]
Is there any particular reason why using BOSSA on the Pi on a command line interface is being encouraged rather than the gui version on Windows? I used this the other day and it took longer to download BOSSA than it did to open the program and re-flash the firmware.
the only real advantage is the -R switch which resets the board after flashing, some people have struggled with that part resulting in the board staying in the bootloader after just disconnecting a usb cable that supplied power. (Well I suppose a copy paste commandline also ensures the erase and verify "checkboxes" are set correctly as well - but you get the same benefit with bossac on windows)
next for me is convenience, the pi is there and ready to go, fetching from git and building just the command line version only should take seconds unless you're on dialup from the 70's
-
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
@bearer - sorry I had already erased
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubTrying to do this via the Pi first off - the Duet is too far from the PC (or my USB cables are too short - depends how you look at it)
you should see something like
Bus 001 Device 008: ID 03eb:6124 Atmel Corp. at91sam SAMBA bootloader
when the usb connection is okay - bad cable? bad board? -
@bearer said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
@ChrisP said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
Perhaps in the first instance it'd be good to have some sort of command line UI for the Pi to automate switching versions quickly and easily - something along the lines of the rasp-config interface? I
I think the solution is to get to the point where people who just need it to work can stay with the 3.1 stable version and for the learning curve on the unstable version to just be par for the course.
Sadly people who would have liked to stay on the 3.0 stable relase have been pushed onto the rollercoaster leading up to 3.1 due to issues with 3.0.
Yeh, to be fair, that's very true. When I decided to go down the unstable release route, I knew what I was possibly getting myself if for and I have no problem with re-imaging fresh raspbian images to start fresh if it comes to it. There's often more to it that simply "trying the latest RC", and I wonder whether it's obvious enough that most people should really stick to stable releases. That said, it needs enough people to test the RCs in different setups to find the bugs.
-
@bearer said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
bad cable? bad board?
No USB cable connected - doing this via the Pi initially ... all the steps went fine except the flashing - which is when the error popped up
- bad board - I sure hope not, if firmware changes or code behaviour can bork a board that's bad - code should not be able to kill hardware (yes I know there are codes used by the nefarious types - but even those are bug exploits really).
For what it is worth my diagnostic LED has been flashing continuously from the day I got the board - it no longer does. All power reports normal, LED power indications normal.
-
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
@bearer said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
bad cable? bad board?
No USB cable connected - doing this via the Pi initially ... all the steps went fine except the flashing - which is when the error popped up
Using BOSSA requires connection from the host computer to the Duet via USB irrespective of whether its a PC or RPi.... if that's what you meant?
-
You're kidding - why ?
Why would I execute something on the command line of a Pi if I connected a PC anyway - I could just run BOSSA on the PC and be done ....
Not logical ... and damn dangerous ... I'm not happy connecting a USB and 24V pwr with the problems I've seen reported with grounding.
Have never agreed with earth bonding of USB shells / screens but I'm not going to debate why it is a fundamentally bad idea in this thread.
-
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
I'm not happy connecting a USB and 24V pwr with the problems I've seen reported with grounding.
this is why I prefer to use usb form the pi, which is supplied from the duet. they all share a common ground and common supply to start with so odds of a ground loop should be as low as they get unless something is really wrong with the wiring (in which case the pi probably wouldn't work in the first place)
and i'll always be a sucker for a bash shell etc:)
and yes, bossa will only work with a usb cable, regardless of pi or computer.
-
@Garfield said in DCS Crash with 3.01-R10 / DWC 2.1.5 / DSF 2.1.1:
You're kidding - why ?
Why would I execute something on the command line of a Pi if I connected a PC anyway - I could just run BOSSA on the PC and be done ....
Not logical ...
Because BOSSA is a separate program made by others specifically for managing the flash on microcontroller such as the one on the Duets.
Your comment about why would you use command line if you could use the PC is precisely my comment above. Though as @bearer suggested, to some extent it comes down to what's easier for you in terms of what's available and what you're comfortable doing. While I'm not an expert on Linux, I'm comfortable with using command line, but I imagine most users would be more comfortable using a gui on a PC.
Anyway, if you don't have a flashing diag LED, I believe you option is only BOSSA and for that you'll need a USB cable and a PC/Pi platform of your choice. Tbh, since you've got this far, the quickest way is likely to be just running the command @bearer posted(I think we've also drifted off topic too. Oops)