Yup. Did the particle serial inspect which showed the following. Worth noting this data is coming back after I cycled power and the photon is stable. When I run that code straight out of programming mode I only have about 5-6 seconds until Magenta comes on and it resets itself.
Platform: 6 - Photon
Modules
Bootloader module #0 - version 7, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 15, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 15, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 15
User module #1 - version 4, main location, 131072 bytes max size
UUID: 49AEBD97C1FF41EAEB1800237DEACD071ACD5ED7E00AD903F8DCD07698B37736
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 13
empty - factory location, 131072 bytes max size
This does not look like your user firmware was targeted at 0.5.1 
How does your device behave after flashing tinker?
particle flash --usb tinker
and what does inspect tell you then?
Oh, I didnāt realize that! Nice emoticon, I feel the same way. Thank you for your help (I really do appreciate it a lot)!
After flashing tinker I reprogrammed the Photon with that code (in the *.ino) file and it worked for 5-6 seconds, and then flashed magenta and restarted the device.
The script files below show the flashing of tinker, and then Particle Serial Inspect.
Gregorys-MacBook-Pro:~ Greg$ particle flash --usb tinker
Found DFU device 2b04:d006
checking file /usr/local/lib/node_modules/particle-cli/binaries/photon_tinker.bin
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D /usr/local/lib/node_modules/particle-cli/binaries/photon_tinker.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
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
Flash success!
Gregorys-MacBook-Pro:~ Greg$ particle serial inspect
Platform: 6 - Photon
Modules
Bootloader module #0 - version 7, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 15, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 15, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 15
User module #1 - version 4, main location, 131072 bytes max size
UUID: 49AEBD97C1FF41EAEB1800237DEACD071ACD5ED7E00AD903F8DCD07698B37736
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 13
empty - factory location, 131072 bytes max size
When I fresh up my device with these commands (each time enter DFU Mode before execution)
particle update
particle flash --usb tiker
I get this inpect output
Platform: 6 - Photon
Modules
Bootloader module #0 - version 7, main location, 16384 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 15, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 15, main location, 262144 bytes max size
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #1 - version 15
User module #1 - version 2, main location, 131072 bytes max size
UUID: 2BA4E71E840F596B812003882AAE7CA6496F1590CA4A049310AF76EAF11C943A
Integrity: PASS
Address Range: PASS
Platform: PASS
Dependencies: PASS
System module #2 - version 1
empty - factory location, 131072 bytes max size
BTW, does particle --version
report 1.14.2
?
Yes, it reports --version 1.14.2. I will run the Photon in DFU mode and execute the particle update and the particle flash to see if it changes revisions.
1 Like