Sketch not "taken" after flashing?

@andyg, have you changed the code before flashing?

An app-hash event should look like this

spark/device/app-hash
{"data":"AD33261013BE137DECF4454F08A14083B28F83EC9FDA9392BFE19AD0F4170265","ttl":60,"published_at":"2017-07-13T16:51:34.957Z","coreid":"26...................30","name":"spark/device/app-hash"}

hi
there are no app-hash events in the log
Tried a few different known to work sketches, they compile, the devices does its LED flashing. all seems OK. but tinker remains in the photon.

event: spark/flash/status
data: {"data":"started ","ttl":60,"published_at":"2017-07-13T16:39:00.907Z","coreid":"3c003a001347353136383631"}

event: spark/flash/status
data: {"data":"success ","ttl":60,"published_at":"2017-07-13T16:39:01.544Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"online","ttl":60,"published_at":"2017-07-13T16:39:04.308Z","coreid":"3c003a001347353136383631"}

event: spark/device/last_reset
data: {"data":"user","ttl":60,"published_at":"2017-07-13T16:39:04.566Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"online","ttl":60,"published_at":"2017-07-13T16:40:15.869Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"offline","ttl":60,"published_at":"2017-07-13T16:47:13.415Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"online","ttl":60,"published_at":"2017-07-13T16:47:19.262Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"offline","ttl":60,"published_at":"2017-07-13T16:47:26.300Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"online","ttl":60,"published_at":"2017-07-13T16:47:27.033Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"online","ttl":60,"published_at":"2017-07-13T16:47:59.701Z","coreid":"3c003a001347353136383631"}

event: spark/flash/status
data: {"data":"started ","ttl":60,"published_at":"2017-07-13T16:54:32.133Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"online","ttl":60,"published_at":"2017-07-13T16:54:36.080Z","coreid":"3c003a001347353136383631"}

event: spark/device/last_reset
data: {"data":"user","ttl":60,"published_at":"2017-07-13T16:54:36.363Z","coreid":"3c003a001347353136383631"}

event: spark/flash/status
data: {"data":"started ","ttl":60,"published_at":"2017-07-13T16:54:58.343Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"offline","ttl":60,"published_at":"2017-07-13T16:55:08.615Z","coreid":"3c003a001347353136383631"}

event: spark/status
data: {"data":"online","ttl":60,"published_at":"2017-07-13T16:55:11.593Z","coreid":"3c003a001347353136383631"}

event: spark/device/last_reset
data: {"data":"user","ttl":60,"published_at":"2017-07-13T16:55:11.898Z","coreid":"3c003a001347353136383631"}

@andyg, do you have the latest version of Particle CLI (1.23.1)?

yes
Welcome to the Particle Command line utility!
Version 1.23.1

@andyg, are you flashing via CLI or the web IDE?

web IDE
(i normally use DEV, but it’s broken today, posted a seperate thread on the forum…

@andyg, instead of OTA via the web IDE, download the bin (use the icon with cloud and down arrow on it). Then try flashing the bin via CLI using particle flash device_name firmware.bin.

particle flash --usb firmware.bin worked fine.

trying via the OTA viaCLI now…

What worked fine? The OTA via CLI?

usb worked fine > particle flash --usb firmware.bin

OTA via CLI output below

AGMBP:~ andygraves2$ particle flash ANDY firmware.bin
Including:
firmware.bin
attempting to flash firmware to your device ANDY
Flash device OK: Update started
AGMBP:~ andygraves2$

result
= photon goes through the motions but not actually updated.
= no hash event

(ps - still unable put device into safe mode if that helps)

@andyg, that last part is odd. When you press the buttons, does it flash magenta and appear to start going into safe mode?

yes, starts flashing magenta, release, then goes back online breathing cyan

Ping @rickkas7

hi rick, please check this thread…

I have no idea what’s causing that. The cloud logs look normal and it seems like you’ve tried everything. Go ahead and submit a support ticket and I’ll get you a replacement Photon. The not staying in safe mode is particularly unusual.

Could you double check which system firmware is on the device? Assuming you've done a particle update, it should be up-to-date, but it never hurts to check.

1 Like

Your device id is 3c003a001347353136383631
Your system firmware version is 0.6.2

And in the web IDE, make sure you are compiling for the matching version, 0.6.2.

1 Like

video showing not able to put into safe mode

(DFU is no problem)