# Flash a hex file via USB

**URL:** https://community.particle.io/t/flash-a-hex-file-via-usb/60508
**Category:** Firmware
**Tags:** electron
**Created:** [June 9, 2021, 6:18pm UTC](https://community.particle.io/t/flash-a-hex-file-via-usb/60508 "2021-06-09T18:18:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wesner0019](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wesner0019](https://community.particle.io/u/wesner0019)
#### Post date: [June 9, 2021, 6:18pm UTC](https://community.particle.io/t/flash-a-hex-file-via-usb/60508/1 "2021-06-09T18:18:24Z")

</div>

Is it possible to flash a hex file to an electron via USB?

---

<div class="post-metadata">

### Author: ![dreamER](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dreamer/32/26550_2.png) [@dreamER](https://community.particle.io/u/dreamER)
#### Post date: [June 9, 2021, 8:22pm UTC](https://community.particle.io/t/flash-a-hex-file-via-usb/60508/2 "2021-06-09T20:22:17Z")

</div>

Hi,  
not sure if that’s possible but you can use [converter](https://www.keil.com/download/docs/7.asp) and then Particle CLI  
`particle flash --usb firmware.bin`

---

<div class="post-metadata">

### Author: ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)
#### Post date: [June 10, 2021, 7:57am UTC](https://community.particle.io/t/flash-a-hex-file-via-usb/60508/3 "2021-06-10T07:57:36Z")

</div>

The .hex files are for use with a debugger. For Gen 2 devices, this can be a ST-LINK or ST-LINK clone USB stick. For all devices, it could also be a Particle Debugger or Segger J-LINK.

---

<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: [December 9, 2021, 7:58pm UTC](https://community.particle.io/t/flash-a-hex-file-via-usb/60508/4 "2021-12-09T19:58:05Z")

</div>

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