Flashing Red. Troubleshooting issues

Hi there, I went to the particle reference guide to understand Particle.function. The very first step basically killed my argon this is what I used to flash it with.

bool success = Particle.function("funcKey", funcName);

// Cloud functions must return int and take one String
int funcName(String extra) {
  return 0;

It was stuck flashing red. I attempted particle particle flash --usb tinker -v. It was not recognized. via usb. However on my phone I am able to ping it and it does say it’s connected. How do I get back to in a state where it works again?

To give more context, I also followed the instructions to put it in safe mode but it briefly goes from magenta back to flashing red again. I also did particle flash jake_particle tinker and it brings back an error Flash device failed: Device not discoverable or is offline. And yet it is in fact recognized by my phone and the particle console as active. I just can’t seem to get around this. I’m hesitant to unclaim my device.

Do not unclaim, that solves nothing.
-Did you place it in DFU mode for the --usb flash?
-Try safe mode and flashing a simple working app (blink an LED or Tinker)

Update. I have successfully put it in DFU mode.

I needed install dfu-util
Here is what I got when I used dfu-util -l

Found DFU: [2b04:d00c] ver=0251, devnum=19, cfg=1, intf=0, path="20-1", alt=2, name="@External Flash   /0x80000000/1024*004Kg", serial="xxxxxxxxxxxxxxxxxx"
Found DFU: [2b04:d00c] ver=0251, devnum=19, cfg=1, intf=0, path="20-1", alt=1, name="@DCD Flash   /0x00000000/1*016Ke", serial="xxxxxxxxxxxxxxxxxxxxx"
Found DFU: [2b04:d00c] ver=0251, devnum=19, cfg=1, intf=0, path="20-1", alt=0, name="@Internal Flash   /0x00000000/1*004Ka,47*004Kg,192*004Kg,4*004Kg,4*004Kg,8*004Ka", serial="xxxxxxxxxxxxxxxx"

Good sign as it recognizes the id. Not sure I should share the number or for it to remain private.

The next steps mention photon? Is it alright to use:

particle flash --usb system-part1-0.5.3-photon.bin
particle flash --usb system-part2-0.5.3-photon.bin

That should work.
Don’t try flashing photon code to an argon though, they’re not the same thing :wink:



It’s a nice solid blue now. Thanks a lot!!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.