# I can't create binary files

**URL:** <https://forum.arduino.cc/t/i-cant-create-binary-files/888733>\
**Category:** IDE 1.x\
**Created:** [July 25, 2021, 1:16am UTC](https://forum.arduino.cc/t/i-cant-create-binary-files/888733 "2021-07-25T01:16:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![carllosedward](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/carllosedward/32/618184_2.png) [@carllosedward](https://forum.arduino.cc/u/carllosedward)\
**Post date:** [July 25, 2021, 1:16am UTC](https://forum.arduino.cc/t/i-cant-create-binary-files/888733/1 "2021-07-25T01:16:26Z")

</div>

I'm working in an application that use OTA updating.  
To do so, i must upload a binary file (.hex) but unfortunately the arduino IDE is not generating such file.

The IDE compiles but at the end, nothing is done (no files are generated).

---

<div class="post-metadata">

**Author:** ![Paul\_KD7HB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_kd7hb/32/1127958_2.png) [@Paul\_KD7HB](https://forum.arduino.cc/u/Paul_KD7HB)\
**Post date:** [July 25, 2021, 1:35am UTC](https://forum.arduino.cc/t/i-cant-create-binary-files/888733/2 "2021-07-25T01:35:41Z")

</div>

The reality is ALL files are binary. HEX is a display option for easier human readability. Just because the extension is .HEX does not change the reality.  
Paul

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [July 25, 2021, 1:46am UTC](https://forum.arduino.cc/t/i-cant-create-binary-files/888733/3 "2021-07-25T01:46:38Z")

</div>

Hi @carllosedward

> [@carllosedward](#):
>
> the arduino IDE is not generating such file.

Please tell us the exact procedure you are using to attempt to generate the binary. We need to know which version of the Arduino IDE you are using and board you are compiling for.

> [@carllosedward](#):
>
> no files are generated

Please tell us exactly where you are expecting to find them at.

---

<div class="post-metadata">

**Author:** ![carllosedward](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/carllosedward/32/618184_2.png) [@carllosedward](https://forum.arduino.cc/u/carllosedward)\
**Post date:** [July 25, 2021, 6:08am UTC](https://forum.arduino.cc/t/i-cant-create-binary-files/888733/4 "2021-07-25T06:08:57Z")

</div>

Hi Pert!

The arduino version is 1.8.13.

As far as i know, when you generate the sketch in binary compilation, two files are generated in the same directory where the .ino fil is stored in.

I followed the same procedure of the videos in YouTube but not reaching the same results.

The board is an ESP32 but i guess that the issue is related with the IDE once the board is working accordingly

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [July 25, 2021, 9:41am UTC](https://forum.arduino.cc/t/i-cant-create-binary-files/888733/5 "2021-07-25T09:41:41Z")

</div>

> [@carllosedward](#):
>
> in the same directory where the .ino fil is stored in.

I think that is not correct. Enable _verbose mode during compilation_ in file -\> preferences in the IDE and check the output; I expect it to refer to a temporary directory.

---

<div class="post-metadata">

**Author:** ![pert](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pert/32/217111_2.png) [@pert](https://forum.arduino.cc/u/pert)\
**Post date:** [July 25, 2021, 11:32am UTC](https://forum.arduino.cc/t/i-cant-create-binary-files/888733/6 "2021-07-25T11:32:02Z")

</div>

> [@carllosedward](#):
>
> when you generate the sketch in binary compilation

This is a very vague statement. Do you mean the Arduino IDE's **Sketch \> Export Compiled Binary** feature?

> [@carllosedward](#):
>
> two files are generated in the same directory where the .ino fil is stored in.

One of those files is the version with the bootloader, which I don't think is really relevant in the case of the ESP32. However, you will get one binary file. It is a `.bin` file, not a `.hex` file. The file type depends on the board you are compiling for. The tutorials you are following that made you expect two `.hex` files were written for the AVR-based Arduino boards. The situation is different with the ESP32.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [November 22, 2021, 11:32am UTC](https://forum.arduino.cc/t/i-cant-create-binary-files/888733/7 "2021-11-22T11:32:57Z")

</div>

Closed on November 22, 2021, 11:32am UTC

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