# Nicla reset before download firmware

**URL:** https://forums.openmv.io/t/nicla-reset-before-download-firmware/9768
**Category:** Arduino Boards
**Created:** [July 4, 2024, 3:20pm UTC](https://forums.openmv.io/t/nicla-reset-before-download-firmware/9768 "2024-07-04T15:20:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![stephane](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@stephane](https://forums.openmv.io/u/stephane)
#### Post date: [July 4, 2024, 3:20pm UTC](https://forums.openmv.io/t/nicla-reset-before-download-firmware/9768/1 "2024-07-04T15:20:42Z")

</div>

Hello,

I want to download nicla firmware without using IDE.

IDE use dfu-utils. OK for this and parameters.

But IDE send a command to reset board before start dfu-utils.

What is it ?  
Where I can find this command ?

Thanks  
stéphane

---

<div class="post-metadata">

### Author: ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)
#### Post date: [July 4, 2024, 5:05pm UTC](https://forums.openmv.io/t/nicla-reset-before-download-firmware/9768/2 "2024-07-04T17:05:43Z")

</div>

Here: [qt-creator/src/plugins/openmv/openmvpluginio.cpp at b1c459d83fb4c5bbccaf0bf1294dd04cedc0c8f7 · openmv/qt-creator (github.com)](https://github.com/openmv/qt-creator/blob/b1c459d83fb4c5bbccaf0bf1294dd04cedc0c8f7/src/plugins/openmv/openmvpluginio.cpp#L1051)

We send a special command to our firmware which resets the board and causes it to enter the bootloader.

Follow the IDE code to decode how this works.

---

<div class="post-metadata">

### Author: ![stephane](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@stephane](https://forums.openmv.io/u/stephane)
#### Post date: [July 5, 2024, 7:53am UTC](https://forums.openmv.io/t/nicla-reset-before-download-firmware/9768/3 "2024-07-05T07:53:10Z")

</div>

great !  
thanks, I will test it

---

<div class="post-metadata">

### Author: ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)
#### Post date: [July 9, 2024, 1:02pm UTC](https://forums.openmv.io/t/nicla-reset-before-download-firmware/9768/4 "2024-07-09T13:02:02Z")

</div>

The whole protocol is implemented in Python here:

> <https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py>

It’s just a single file so easier to read and understand than the C++/IDE implementation.

There’s also an example using that with pygame to capture and display the framebuffer:

> <https://github.com/openmv/openmv/blob/master/tools/pyopenmv_fb.py>
