# Electron won't flash user application code

**URL:** <https://community.particle.io/t/electron-wont-flash-user-application-code/57740>\
**Category:** Firmware\
**Tags:** electron\
**Created:** [September 14, 2020, 12:25pm UTC](https://community.particle.io/t/electron-wont-flash-user-application-code/57740 "2020-09-14T12:25:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![atecey](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@atecey](https://community.particle.io/u/atecey)\
**Post date:** [September 14, 2020, 12:25pm UTC](https://community.particle.io/t/electron-wont-flash-user-application-code/57740/1 "2020-09-14T12:25:59Z")

</div>

Hi,  
I’m having some trouble flashing two electrons with my app code. I’ve used the particle workbench plugin for compiling and flashing. Whenever I put the electron in DFU mode and flash it appears to flash correctly but doesn’t as the old code is present.

Strangely whenever I compile and flash for debug the app code does flash correctly.

The OS version on both boards is 1.5.2.  
For context before I tried flashing my app code I used the web IDE update the device OS from 0.5.x to 1.5.2.

Any idead on why this might be happening?

Many thanks

---

<div class="post-metadata">

**Author:** ![nrobinson2000](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/nrobinson2000/32/15624_2.png) [@nrobinson2000](https://community.particle.io/u/nrobinson2000)\
**Post date:** [September 14, 2020, 3:34pm UTC](https://community.particle.io/t/electron-wont-flash-user-application-code/57740/2 "2020-09-14T15:34:40Z")

</div>

After flashing for debug to run application code again you need to flash the application and deviceOS.

This can be done with:

```auto
Particle: Flash application & DeviceOS (local)

```

> [@I cant join a 2nd device](https://community.particle.io/t/i-cant-join-a-2nd-device/51909/6):
>
> Another way would be to use: Particle: Flash application & DeviceOS (local) From the Command Palette. SHIFT + CTRL + P (SHIFT + COMMAND + P on Mac) This won’t require the device to be online to receive the DeviceOS update.

---

<div class="post-metadata">

**Author:** ![atecey](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@atecey](https://community.particle.io/u/atecey)\
**Post date:** [September 14, 2020, 4:07pm UTC](https://community.particle.io/t/electron-wont-flash-user-application-code/57740/3 "2020-09-14T16:07:35Z")

</div>

That was it thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/6/4/64635adccc35238caa19e9b553ec3e98b163d026.png) [@system](https://community.particle.io/u/system)\
**Post date:** [March 16, 2021, 4:07am UTC](https://community.particle.io/t/electron-wont-flash-user-application-code/57740/4 "2021-03-16T04:07:37Z")

</div>

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