# Flash Local USB Core in DFU Mode From SparkDev?

**URL:** <https://community.particle.io/t/flash-local-usb-core-in-dfu-mode-from-sparkdev/8760>\
**Category:** General\
**Created:** [December 12, 2014, 3:01pm UTC](https://community.particle.io/t/flash-local-usb-core-in-dfu-mode-from-sparkdev/8760 "2014-12-12T15:01:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickpbush](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickpbush/32/1247_2.png) [@rickpbush](https://community.particle.io/u/rickpbush)\
**Post date:** [December 12, 2014, 3:01pm UTC](https://community.particle.io/t/flash-local-usb-core-in-dfu-mode-from-sparkdev/8760/1 "2014-12-12T15:01:34Z")

</div>

Hi, quick question, does anyone know if it’s possible to flash a core connected to USB and in DFU mode from the SparkDev IDE please.

I have been using Netbeans and whent through the whole install tutorial which works but when the SparkDev came along I thought what a nice simple IDE and thought it might be similar in term of ease of use to the Arduino IDE.

Alas, I can’t figure out how to flash my core from it when away from my router. Thanks, Rick.

---

<div class="post-metadata">

**Author:** ![mtnscott](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mtnscott/32/3217_2.png) [@mtnscott](https://community.particle.io/u/mtnscott)\
**Post date:** [December 12, 2014, 3:11pm UTC](https://community.particle.io/t/flash-local-usb-core-in-dfu-mode-from-sparkdev/8760/2 "2014-12-12T15:11:24Z")

</div>

@rickpbush There are two ways to flash the Spark Core - either locally via USB and dfu-util or over the air using the Web IDE.

If you want to flash locally using the USB, I recommend using the Spark CLI - documentation can be found [here](http://docs.spark.io/cli/)

If you want to compile on the Web IDE and flash locally then you can download the firmware by clicking on the cloud icon while you are in the IDE It's next to the name of your program. Then just type

> spark flash --usb firmware.bin

---

<div class="post-metadata">

**Author:** ![rickpbush](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickpbush/32/1247_2.png) [@rickpbush](https://community.particle.io/u/rickpbush)\
**Post date:** [December 12, 2014, 3:28pm UTC](https://community.particle.io/t/flash-local-usb-core-in-dfu-mode-from-sparkdev/8760/3 "2014-12-12T15:28:47Z")

</div>

Ok, got that working, thank you. I would say though that it woruld be nice to be able to do this via the SparkDev IDE GUI 😄

---

<div class="post-metadata">

**Author:** ![mtnscott](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/mtnscott/32/3217_2.png) [@mtnscott](https://community.particle.io/u/mtnscott)\
**Post date:** [December 12, 2014, 6:20pm UTC](https://community.particle.io/t/flash-local-usb-core-in-dfu-mode-from-sparkdev/8760/4 "2014-12-12T18:20:40Z")

</div>

You can but it will be OTA. If you click on the ![](https://community.particle.io/uploads/particle/3833/a8ecb0ab6d69c136.png) button just above the Save & Verify it will flash the core over the air. If you have more than one core you need to select the target core from the ![](https://community.particle.io/uploads/particle/3834/96cc3fac80643914.png) button.
