# Electron 2G breathing cyan but apparently not executing code

**URL:** <https://community.particle.io/t/electron-2g-breathing-cyan-but-apparently-not-executing-code/23071>\
**Category:** Troubleshooting\
**Created:** [May 22, 2016, 2:33am UTC](https://community.particle.io/t/electron-2g-breathing-cyan-but-apparently-not-executing-code/23071 "2016-05-22T02:33:07Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![will](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/will/32/23374_2.png) [@will](https://community.particle.io/u/will)\
**Post date:** [May 28, 2016, 4:37am UTC](https://community.particle.io/t/electron-2g-breathing-cyan-but-apparently-not-executing-code/23071/21 "2016-05-28T04:37:24Z")

</div>

Hey @bblack7489! If you think there might be a bug, the best thing to do is to submit an issue at [github.com/spark/firmware](http://github.com/spark/firmware) with a link to this thread! We’ll be able to take steps to reproduce there.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [May 28, 2016, 7:14am UTC](https://community.particle.io/t/electron-2g-breathing-cyan-but-apparently-not-executing-code/23071/22 "2016-05-28T07:14:14Z")

</div>

I’ll have a check with my own device again, but how does the device behave when your code does _not_ use `delay()` or soft delay instead?

* * *

_Update:_  
I’ve tried your code _and_ this one

```cpp
const int led = D7; // built-in LED on D7

void setup() {
    pinMode(led, OUTPUT);
}

void loop() {
    static uint32_t ms;
    if (millis() - ms > 500)
    {
        ms = millis();
     // To blink the LED, we'll toggle it ;-)
        digitalWrite(led, !digitalRead(led));
    }
}

```

and both do execute just fine and I can OTA other code too while running your and/or my code.

Have you got the LiPo charged and connected when doing OTA?  
No extra circuitry?  
Good 2G coverage?

---

<div class="post-metadata">

**Author:** ![bblack7489](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bblack7489](https://community.particle.io/u/bblack7489)\
**Post date:** [May 30, 2016, 5:38pm UTC](https://community.particle.io/t/electron-2g-breathing-cyan-but-apparently-not-executing-code/23071/23 "2016-05-30T17:38:48Z")

</div>

When I sat down to test, I had a firmware running with the LED blinking at 2Hz. I copied the code above, changed it to "ms \> 1000", flashed it over the air, it blinked purple, reset, said flash successful, ready. However when it connects to the internet and then runs my user code, it's still flashing at 2Hz not at the 0.5Hz in the code.

I then downloaded the binary, put it in DFU mode and flashed over the USB

> Microsoft Windows [Version 10.0.10586]  
> (c) 2015 Microsoft Corporation. All rights reserved.

> C:\Users\bblack\>particle flash --usb firmware2.bin  
> running dfu-util -l  
> Found DFU device 2b04:d00a  
> checking file firmware2.bin  
> spawning dfu-util -d 2b04:d00a -a 0 -i 0 -s 0x08080000:leave -D firmware2.bin  
> 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](mailto:dfu-util@lists.gnumonks.org)

> Opening DFU capable USB device...  
> ID 2b04:d00a  
> 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 = 0x08080000, size = 3188  
> Download [=========================] 100% 3188 bytes  
> Download done.  
> File downloaded successfully  
> Invalid DFU suffix signature  
> A valid DFU suffix will be required in a future dfu-util release!!!

> Flash success!

Again it reported a successful flash, but when it came back online D7 is now blinking at 0.5Hz as expected.

As the last permutation, I tried setting the rate back to 2Hz and flashing over the air, but it is still just flashing at 0.5Hz

The battery is fully charged, the 2G signal is good, and it's not in any sort of carrier board.

---

<div class="post-metadata">

**Author:** ![bblack7489](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bblack7489](https://community.particle.io/u/bblack7489)\
**Post date:** [May 30, 2016, 5:55pm UTC](https://community.particle.io/t/electron-2g-breathing-cyan-but-apparently-not-executing-code/23071/24 "2016-05-30T17:55:53Z")

</div>

@will, thanks! I submitted it.

Is there a chance that it’s browser based? Or did I get a board with a faulty FTDI chip?

I can see how Win10 might affect the serial update, but the OTA update seems disconnected to me without knowing the actual firmware inside and out like one of you guys.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [May 30, 2016, 5:55pm UTC](https://community.particle.io/t/electron-2g-breathing-cyan-but-apparently-not-executing-code/23071/25 "2016-05-30T17:55:57Z")

</div>

That is odd and absolutely unexpected 😕

It’s not necessarily a bug worth a GitHub issue (I’d say), but seems to be something for support  
[https://www.particle.io/support](https://www.particle.io/support)

[Previous page](https://community.particle.io/t/electron-2g-breathing-cyan-but-apparently-not-executing-code/23071.md?page=1)
