Hi there, Ive started goofing with just the seed on its own and have successfully programed the blink through arduino and the drum example program through the web programmer.
I tried making a change in the kick drums wave to be a square wave instead of triangle:
I made the change in notepad++ and saved it. Through the cmd line I performed a “make clean all” and attempted a “make program-dfu” while in bootload mode and after following Zadig driver upgrade. I receive the following error from the make program-dfu command
Those instructions were great, I had to run the following first.
git checkout master
git pull origin master
I’m not sure but the git pull --recurse-submodules wouldn’t run until I deleted the drum.cpp file. I’m thinking because I had made changes to it. There was an error saying something like commit or discard my changes. I simply deleted the file and it seemed to run after that.
One thing very odd though since the
git pull --recurse-submodules
The drum.bin file is missing Is that from something on my end or just a coincidence ?
I tried and was successful with
make program-dfu
on another example and it loaded just fine to the daisy seed.
I suspect that the changes were the reason for the failure of the git pull --recurse-submodles.
Git would have seen the changes to the drum.cpp file and made sure that it didn’t accidentally overwrite those (in case they were important). It’ll tell you what files are causing issues and you can just delete or rename which ever ones it mentions, and then it should work.
None of the individual .bin files are tracked on git (only the ones in the dist/ folder). So not sure why the one you had disappeared unless you ran make clean, or manually deleted the build folder.
Actually I did run make clean all at one point earlier in the troubleshooting. Im quite green with this and didn’t realize this would remove the bin files. How can I go about rebuilding them
Thanks!! Yeah, It’s confusing. I’ll probably stick with the Arduino IDE because I have a Teensy-based device too and having two different IDEs is also an extra cognitive load.
After download is complete, the DFU spec prescribes that the device enters a state known as manifestation, where the host gives the device time to apply the download. During this time, dfu-util continually requests the status of the device while it reports that it is manifesting.
In our case, manifestation isn’t required, and the code simply sets the device status to manifestation complete and resets the device. The abrupt reset caused dfu-util to lose the USB connection and report a failure when trying to retrieve the device status.
The main fix is to delay the reset so that the USB response has time to be sent. A secondary fix is to report the state as Download_Idle so that dfu-util doesn’t print
Is the possible to tweak to add this delay and suppress the error - might be better for that first time user experience!
This seems like a reasonable explanation, thank you!
I just started and was also confused by this error.
I’d like to second the motion to try and fix it, in the meantime at least include it in the troubleshooting wiki and the getting started page so as to save newbies from worrying about it!