I think I know what the problem was: I was using Cygwin
Cygwin doesn’t work even though you get the same output as the node.js CLI, and even though the photon responds to it i.e. flashing magenta and serial connection which makes you think it worked.
dfu-util: Error during download get_status
This is the error that I get after I do dfu-util
my dfu-util -l is 0.9
Photon ID is 2b06:d008
Downloading to address = 0x080a0000, size = 3176
Download [=========================] 100% 3176 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status
I am trying for Led Blink application so assuming the binaries are successfully flashed so after the flashing ( sudo dfu-util -d 2b04:d008 -a 0 -i 0 -s 0x80A0000:leave -D …/build/target/user-part/platform-6-m/blink.bin)
The D7 Led is not blinking?
I am having the same error that @AllAboutEE had, my code flash succesfully but the led blinks magenta, I have tried all solution posted here, I did it in windows with the cmd line and with the node.js CLI and same result always magenta. Any sugestion will be highly appreciated.
Are you doing the make from the firmware/main or firmware/modules directory? For the Electron, you will likely have to build at least once from the modules directory in program-dfu mode. The reason you’re blinking magenta is you are in safe mode because your system firmware and application firmware versions are not compatible. Building from modules will flash the system firmware that corresponds to the tree that you got from git.
Yes, that should work. The only thing I might try is deleting the firmware/build/target directory. If you are using APPDIR, also delete the target directory in that. Once in a while things get confused and make clean isn’t enough to resolve the problem.
But safe mode magenta after a local build for a Photon is also kind of weird; that normally shouldn’t happen because it can use the safe mode healer to upgrade the system firmware for you. That normally only happens on the Electron where it doesn’t do that for data usage reasons. Odd.