Problem connecting and flashing Photon

Any help greatly appreciated,
Steve

Have been unable to connect to this Photon after trying Android tablet or using particle setup. Posting below is my attempt to Flash the Photon with system mode set to Semi-auto so it wont need to connect:

Photon flashing yellow- dfu mode -
"

C:\Program Files\nodejs\Installed\dfu-util-0.8-binaries\win32-mingw32
lash --force --usb firmware.bin
running dfu-util -l
Found DFU device 2b04:d006
checking file firmware.bin
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D firmw
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

Opening DFU capable USB device...
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash   "
Downloading to address = 0x080a0000, size = 78544
Download        [=========================] 100%        78544 bytes
Download done.
File downloaded successfully
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Error during download get_status

Error writing firmware...Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Error during download get_status

Now it’s blinking green

did all of this:

    npm update -g particle-cli
    place Photon in DFU-mode
    particle update
    place Photon in DFU-mode
    particle flash --usb tinker
    hold on to the SETUP button until the device blinks blue
    release SETUP button and press and hold until it blinks blue rapidly to clear wifi credentials
    particle serial wifi to setup Wifi credentials



C:\Users\N\Documents\dfu-util-0.8-binaries\win32-mingw32>particle flash --force
--usb firmware.bin
running dfu-util -l
Found DFU device 2b04:d006
checking file firmware.bin
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D firmware.bin
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

Opening DFU capable USB device...
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash   "
Downloading to address = 0x080a0000, size = 78544
Download        [=========================] 100%        78544 bytes
Download done.
File downloaded successfully
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!

Flash success!

C:\Users\N\Documents\dfu-util-0.8-binaries\win32-mingw32>

Back to flashing green?"

Thanks,
Steve

It would be good to see your code.
You say you use SEMI_AUTOMATIC but what does your code do after bootup?

I’ve never really had to use --force either.

How did/does the Photon behave after flashing tinker?

Hi,
I just added one line to the blink.ino code and compiled it using Particle:
"#include “FastLED.h"
FASTLED_USING_NAMESPACE;
SYSTEM_MODE(SEMI_AUTOMATIC);
// How many leds in your strip?
rest of blink code is here”

I am new to micro controllers, I have programmed on Unix systems for years, but I could sure use a few pointers about this stuff to get on the right track. I have been going through the tutorials, but have not found any that show the dfu flashing. I just discovered yesterday that my WIndows driver was connecting via USB using a serial com7 driver, but I noticed that zadig.exe instructions say to use libusbk. I reinstalled the driver so it was connecting using libusbk. THis seems to be a step in the right direction. Still not seeing anything cannected from “Particle list”?Trying not to get long winded here…
Would you be so kind as to answer a couple of questions for me or point me to a learning place?
Is there a Firmware flash and a separate user code flash?
After a successful flash of blink shouldn’t the Photon blink one of it’s lights?
Thank You for your help,
Steve

Still getting the Invalid dfu suffex , but it says flashed?
How do I know this worked?
Went back to flashing green, but I still can’t get it to connect to my cisco wifi router.

Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\N>dfu-util -l
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

Found DFU: [2b04:d006] ver=0200, devnum=3, cfg=1, intf=0, alt=1, name="@DCT Fl
h /0x00000000/01016Kg", serial=“00000000010C"
Found DFU: [2b04:d006] ver=0200, devnum=3, cfg=1, intf=0, alt=0, name=”@Intern
Flash /0x08000000/03
016Ka,01016Kg,01064Kg,07*128Kg", serial="00000000010

C:\Users\N>particle flash --usb tinker
running dfu-util -l
Found DFU device 2b04:d006
checking file C:\Users\N\AppData\Roaming\npm\node_modules\particle-cli\binarie
photon_tinker.bin
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D C:\Users\N\App
ta\Roaming\npm\node_modules\particle-cli\binaries\photon_tinker.bin
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

Opening DFU capable USB device…
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface…
Setting Alternate Setting #0 …
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 3952
Download [=========================] 100% 3952 bytes
Download done.
File downloaded successfully
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!

Flash success!

This part means the DFU download worked.

2 Likes