# Flashing Multiple Legato Devices at Manufacturing

**URL:** <https://forum.legato.io/t/flashing-multiple-legato-devices-at-manufacturing/3092>\
**Category:** Uncategorized\
**Created:** [February 14, 2018, 11:02pm UTC](https://forum.legato.io/t/flashing-multiple-legato-devices-at-manufacturing/3092 "2018-02-14T23:02:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SMLee920](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@SMLee920](https://forum.legato.io/u/SMLee920)\
**Post date:** [February 14, 2018, 11:02pm UTC](https://forum.legato.io/t/flashing-multiple-legato-devices-at-manufacturing/3092/1 "2018-02-14T23:02:55Z")

</div>

Does anyone know how to go about flashing multiple Legato devices at the same time at manufacturing on a windows machine? I’m currently able to flash a single device using the Firmware Download Tool (fdt2.exe) and have tried including the options for multiple instances (-multi) and automation mode (-a)

fdt2.exe -d 9x28 -a -multi -f My\_FW.spk

but have been unsuccessful in programming two in parallel.

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [February 15, 2018, 6:28am UTC](https://forum.legato.io/t/flashing-multiple-legato-devices-at-manufacturing/3092/2 "2018-02-15T06:28:51Z")

</div>

hi,

Have you tried adding the option “-usbport” to specify the port number?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [February 15, 2018, 7:04am UTC](https://forum.legato.io/t/flashing-multiple-legato-devices-at-manufacturing/3092/3 "2018-02-15T07:04:27Z")

</div>

Hi @SMLee920

in addition you should use the **-usbhub** and **-usbport** options to specify the expected device to be flashed.

In order to find the numbers, at the moment the way I found is:

- Identify the device PID/VID  

- Go to the registry to find the hub/port number  

- In this example, the options will be **-usbhub 3 -usbport 7**

I’ll check internally if there is an easiest way.

---

<div class="post-metadata">

**Author:** ![SMLee920](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@SMLee920](https://forum.legato.io/u/SMLee920)\
**Post date:** [February 28, 2018, 10:51pm UTC](https://forum.legato.io/t/flashing-multiple-legato-devices-at-manufacturing/3092/4 "2018-02-28T22:51:19Z")

</div>

Thanks Everyone,

I was eventually able to automate the process by reading the registry files…getting all the USB devices with the correct VID&PID…and then parsing out the Port & Hub numbers to feed to the Firmware Download Tool. Wish there was a way to make it easier for the operator to identify which device goes to which Port/Hub…but my workaround was just to do a batch program instead of making each device download asynchronous.
