I've got a possessed Photon. My student put some firmware on it that displays interesting colors with the RGB LED, but we can't replace it with anything else. I put it into dfu-util mode and then used
It says Flash success! and I see the RGB go white, flashing green, and then ... back to my student's firmware.
I don't know if this is related, but I tried doing particle update (figuring I'd update to the latest deviceOS), and get
! An error occurred while attempting to update the system firmware of your device:
dfu-util:
File too short for DFU suffix
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: 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
particle device doctor also errors out, with the Cannot read property 'code' of undefined error.
@mprogers, which version of the Particle CLI are you running (check with particle --version)?
The studentās firmware may be āchokingā the DeviceOS so you could simply flash Tinker back onto the device using DFU mode and particle flash --usb tinker. If Tinker runs as expected, then put the device back into DFU mode and try particle update again.
Thanks for your reply, peekay123! Iām running version 1.45.0.
I tried to flash tinker as I was thrashing about trying to solve this, but I get a light display that I believe is still my studentās code ā a variety of colors, that ends up in a slow and infinitely repeating transition between blue/cyan and green.
@mprogers, the only āParticleā pattern that is similar is the āsignalā pattern. However, what happens when you do particle update while in DFU mode?
OK, so it's not flashing Tinker. When I run particle update, I get this:
particle update
Your device is ready for a system update.
This process should take about 30 seconds. Here it goes!
! An error occurred while attempting to update the system firmware of your device:
dfu-util: File too short for DFU suffix
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: 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
@mprogers, are you on Windows or Linux? If Windows, did you install CLI using the Windows installer? Are you running particle from a system directory (ie no write permissions)?
Hey @mprogers, can you confirm whether or not the Photon is currently in a product? If the device is in a productāwhenever it reconnects to the cloud, the cloud will instruct it to download the latest firmware in its productāwhich is likely your studentās firmware.
Removing it from a Product should allow USB flashed firmware to persist.
I am having the same issue and I did a few things including flashing tinker (particle flash --usb tinker), bootloader (particle flash --serial bootloader-0.7.0-photon.bin), etc. but the device still has the same old program running!
Any update on this issue?
When I do update I get an error:
particle update
> Your device is ready for a system update.
> This process should take about 30 seconds. Here it goes!
! 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
particle device doctor
The Device Doctor will put your device back into a healthy state
It will:
- Upgrade system firmware
- Flash the default Tinker app
- Reset the device and server keys
- Clear the Wi-Fi settings
The Doctor will operate on your Photon connected over USB
PLEASE DISCONNECT ALL OTHER DEVICES BEFORE PROCEEDING
You'll be asked to put your device in DFU mode several times to reset different settings.
Updating system firmware
Put the device in DFU mode
Tap RESET/RST while holding MODE/SETUP until the device blinks yellow.
? Select Continue when ready Continue
> Your device is ready for a system update.
> This process should take about 30 seconds. Here it goes!
! 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/
The Doctor didn't complete successfully. Cannot read property 'code' of undefined
> Please visit our community forums for help with this error:
https://community.particle.io/