# Using Workbench results in no user code running... but devices flash correctly

**URL:** <https://community.particle.io/t/using-workbench-results-in-no-user-code-running-but-devices-flash-correctly/55534>\
**Category:** Particle Workbench\
**Created:** [April 7, 2020, 8:51am UTC](https://community.particle.io/t/using-workbench-results-in-no-user-code-running-but-devices-flash-correctly/55534 "2020-04-07T08:51:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheetahfox](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cheetahfox](https://community.particle.io/u/cheetahfox)\
**Post date:** [April 7, 2020, 8:51am UTC](https://community.particle.io/t/using-workbench-results-in-no-user-code-running-but-devices-flash-correctly/55534/1 "2020-04-07T08:51:59Z")

</div>

I am a loss here, I have been trying to figure this out for a few hours now… Basically no mater what code I compile in Workbench results in code that compiles and flashes correctly. But never actually runs any user code.

Long story short, I eventually tested using the “Blink an LED” example from the Web IDE. When I copy this example into Workbench, the code compiles and flashes correctly. But I never see any blinking leds also I never see a " spark/device/app-hash" event. The Photon is connected, I ping it from the console everything seems as far as I can tell fine. But no blinking LED’s. If I flash from the Web IDE, everything works as expected, Blinking LED’s, app-hash event… etc… I will also note if it’s not clear the status LED is exactly the same in both cases(breathing cyan).

I have reinstalled the toolchain( twice for 1.5.0), tried Device os 1.4.4, Flashed via the Cloud, Flashed Via USB DFU. Everything says success… for example here is USB flash output…

```auto
:::: PUTTING DEVICE INTO DFU MODE

Done.

:::: FLASHING APPLICATION

   text data bss dec hex filename
   4220 108 1368 5696 1640 c:/Users/Josh/Documents/Hue-light-switch/Hue/target/1.5.0/photon/Hue.elf
Serial device PARTICLE_SERIAL_DEV : not available
Flashing using dfu:
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/  

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 = 4328
Download [=========================] 100% 4328 bytes
Download done.
File downloaded successfully

***FLASHED SUCCESSFULLY***

```

I am at a total loss… I looked around here and didn’t see anything like this. Any thoughts?

---

<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:** [April 7, 2020, 9:03am UTC](https://community.particle.io/t/using-workbench-results-in-no-user-code-running-but-devices-flash-correctly/55534/2 "2020-04-07T09:03:09Z")

</div>

Can you run `particle binary inspect <yourFirmware.bin>`?

---

<div class="post-metadata">

**Author:** ![cheetahfox](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cheetahfox](https://community.particle.io/u/cheetahfox)\
**Post date:** [April 7, 2020, 9:09am UTC](https://community.particle.io/t/using-workbench-results-in-no-user-code-running-but-devices-flash-correctly/55534/3 "2020-04-07T09:09:26Z")

</div>

Here is what I get.

```auto
C:\Users\Josh\Documents\Hue-light-switch\Hue\target\1.5.0\photon>particle binary inspect Hue.bin
Hue.bin
 CRC is ok (14d8c760)
 Compiled for photon
 This is an application module number 1 at version 6
 It depends on a system module number 2 at version 1502

```

---

<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:** [April 7, 2020, 9:21am UTC](https://community.particle.io/t/using-workbench-results-in-no-user-code-running-but-devices-flash-correctly/55534/4 "2020-04-07T09:21:24Z")

</div>

That looks fine, just the length of your binary looks too short  
I get 4312 bytes for a project with empty `setup()` and `loop()` so your 4328 in your flash report suggest you are not actually building active code.

Can you post a screenshot of your full Workbench window with the file explorer tab open?

---

<div class="post-metadata">

**Author:** ![cheetahfox](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cheetahfox](https://community.particle.io/u/cheetahfox)\
**Post date:** [April 7, 2020, 9:23am UTC](https://community.particle.io/t/using-workbench-results-in-no-user-code-running-but-devices-flash-correctly/55534/5 "2020-04-07T09:23:56Z")

</div>

Here is the Screen Shot, Thanks so much for your help!

 ![Screenshot 2020-04-07 04.22.33](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/4/2/426fc8eb5ce997f30505bb38ac9d9f329d719d2a.png)

---

<div class="post-metadata">

**Author:** ![cheetahfox](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cheetahfox](https://community.particle.io/u/cheetahfox)\
**Post date:** [April 7, 2020, 9:29am UTC](https://community.particle.io/t/using-workbench-results-in-no-user-code-running-but-devices-flash-correctly/55534/6 "2020-04-07T09:29:37Z")

</div>

Ok, That got me to look at this very carefully. And yup… This is what I get for starting programming project at 1am. I was coding in new-light.ino… And it’s building Hue.ino… Sorry about wasting your time. But you did get me to look carefully at what I was doing.
