[SOLVED] Make clean all PLATFORM=photon -s program-dfu error

I’m trying to get the IDE setup with an offline compiler ready on a Mac (OS X 10.11).
Things I’ve done:

  1. I have a folder with a bare bones app (just a tinker.ino file) in a directory.
  2. Downloaded the firmware-latest branch zip file.
  3. Installed all the dependencies (make , and dfu-util -l work fine).

When I run the command:

make clean all PLATFORM=photon -s program-dfu

I get the following errors:

arm-none-eabi-objdump -h -S ../../../build/target/system-part1/platform-6-m/system-part1.elf > ../../../build/target/system-part1/platform-6-m/system-part1.lst
dfu-suffix -v 2B04 -p D006 -a ../../../build/target/system-part1/platform-6-m/system-part1.dfu
dfu-suffix (dfu-util) 0.8

Copyright 2011-2012 Stefan Schmidt, 2013-2014 Tormod Volden
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Suffix successfully added to file
Serial device PARTICLE_SERIAL_DEV : not available
Flashing using dfu:
dfu-util -d 0x2B04:0xD006 -a 0 -s 0x8020000 -D ../../../build/target/system-part1/platform-6-m/system-part1.dfu
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

dfu-util: No DFU capable USB device available
make[1]: *** [program-dfu] Error 74
make: *** [/Users/adeesh/particle_photon/particle_project/firmware-latest/modules/photon/system-part1/makefile] Error 2

The make happens just fine. But I think it’s something wrong just with the dfu-utils.

Appreciate any kind of help. I’m sort of lost with this and there aren’t too many posts about this.

Things I’ve already tried (but not limited to):

  1. Make program-dfu error
  2. Photon Firmware error make
  3. Photon won't *finish* flash with dfu-util

For the develop branch you need to set PARTICLE_DEVELOP=1 too, to make sure you are aware of possible work-in-process issues.

And have you put your device into DFU Mode (yellow blinking)?

I guess the missing "d" in program-fu was a typo :wink:

Apologize for the mixup. I used the latest branch. not the develop.

I think that my subconscious mind got the better of me :smiley: . That was indeed, a typo. I meant program-dfu - thanks for pointing that out.

I did try putting into yellow. But is that required?

Is there any other reason I could be facing this issue?

Yes, to use dfu-util you need ... guess ... DFU Mode :wink:

But to only build, you don't need the program-dfu part of the command.

1 Like

I think I didn’t give dfu-mode enough importance. Sorry bout this. It works fine now.
Thanks a ton @ScruffR ! :smile:

2 Likes