Particle Photon Flash successful but nothing happening

I have been flashing the default code to blink the D7 LED on Web IDE. It says the flash is successful but the D7 LED does not blink.

I suspect it is because my photon is on version 0.4.7, and I heard that the photon updates itself automatically when you flash the code. But it is not updating itself either.

Thanks

Updating from such an ancient version would take ages as it would require multiple stepping stone versions.
The quickest and most reliable way would be installing CLI and then run particle update -v

I tried running particle update -v.

But it gave me several errors. I pasted them below:

File downloaded successfully
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!

Updating system firmware on the device…File too short for DFU suffix
A valid DFU suffix will be required in a future dfu-util release!!!
Error during download get_status

! An error occurred while attempting to update the system firmware of your device:

File too short for DFU suffix
A valid DFU suffix will be required in a future dfu-util release!!!
Error during download get_status

> Please visit our community forums for help with this error:
https://community.particle.io/
Cannot read property ‘code’ of undefined
TypeError: Cannot read property ‘code’ of undefined

Warnings of this kind can safely be ignored.

This on the other hand is odd.

What version CLI are you running (particle --version)
Was this the entire output? Normally I'd expect to see a lot more info - especially for the modules that were updated successfully.
Are you running the command from a location where you have full write access? (e.g. C:\Windows\SYSTEM would be a bad choice).

Particle version is 2.0.1.
I am running it from C:\Users\CalmRaptor.

The entire output looks like this:

Your device is ready for a system update.
This process should take about 30 seconds. Here it goes!

Updating system firmware on the device...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 = 0x080c0000, size = 15336
Downloadng syste[=========================] 100% 15336 bytes
Download done.
File downloaded successfully
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Updating system firmware on the device...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 #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "DCT Flash "
Downloading to address = 0x000006d9, size = 1
Updating system firmware on the device...File too short for DFU suffix
A valid DFU suffix will be required in a future dfu-util release!!!
Error during download get_status

! An error occurred while attempting to update the system firmware of your device:

File too short for DFU suffix
A valid DFU suffix will be required in a future dfu-util release!!!
Error during download get_status

Please visit our community forums for help with this error:
https://community.particle.io/
Cannot read property 'code' of undefined
TypeError: Cannot read property 'code' of undefined
at dfuError (C:\Users\CalmRaptor\AppData\Local\particle\node_modules\particle-cli\dist\cmd\update.js:121:18)
at dfu.findCompatibleDFU.then.catch.err (C:\Users\CalmRaptor\AppData\Local\particle\node_modules\particle-cli\dist\cmd\update.js:32:14)
at
at runMicrotasksCallback (internal/process/next_tick.js:122:5)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)

This should not happen, but I’d defer this to @rickkas7 for further advice.
Meanwhile can you put your device into Listening Mode and run particle serial inspect and post the output here?

Result

As it seems the bootloader was updated (version 501) but the rest wasn’t (version 8).
You can try downloading device OS system part1 and part2 and flash them one by one like this

particle flash --usb photon-system-part1@1.4.4.bin -v
particle flash --usb photon-system-part2@1.4.4.bin -v

and run particle serial inspect again.

1 Like

That made my photon show version 1.4.4 on the web ide and the Blink D7 led code is also working now.

Thanks a lot!

Particle Serial shows

Platform: 6 - Photon
Modules
Bootloader module #0 - version 501, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1406, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 207
System module #2 - version 1406, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 1406
Bootloader module #0 - version 400
User module #1 - version 3, main location, 131072 bytes max size
UUID:
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 6

1 Like