Events

:

:

Elektronik | Funk | Software

Der Technik-Blog

  • Social Media

    YouTube

    Werbung:


    New Posts


    Events

    • Keine zukünftigen Events vorhanden

    The Tech-Blog

    ESP Program Export HEX/BIN & Flash Tool Upload

    Export compiled program (Arduino)

    Alex @ AEQ-WEB

    If a program is uploaded to a microcontroller from the Arduino IDE, the program must first be compiled. The compiler converts the program written in C or C++ into a machine language. This produces either a hex file (.hex file) or a bin file (.bin file) depending on your hardware. This article is about exporting codes to a HEX or BIN file from the Arduino IDE.

    When is an export useful?

    The hex and bin file contains the finished program including all integrated libraries. An export of this file is therefore useful when:

    Werbung:

  • A program should be archived (backup)
  • The program code should not be changeable
  • The program code should not be visible


  • It happens again and again that libraries are no longer updated by the developers. In contrast, the Arduino IDE and the compiler are updated from time to time. The consequence is that compilation problems can occur. It can also happen that the compilation process was successful and yet the program or a hardware no longer works due to an old library. This can be prevented with a program export, as the compiled exported program is independent of the Arduino IDE version or libraries. Changes to the code cannot be made after the compilation process. Also, the source code is no longer viewable after compiling. Attention: There are tools that allow to decompile an already compiled file again. In practice, however, this works only conditionally. In simple terms, this means that you can get a rough overview of a compiled program, but a direct decompile, change and recompile is not possible.

    Exporting from the Arduino IDE

    Meanwhile the program export with the Arduino IDE is very simple. Under [Sketch] -> [Export compiled Binary] the program will be compiled and a file will be created afterwards. For ESP projects a .BIN file is created, AVR projects are saved as .HEX file. The file is saved directly to the project folder parallel to the .ino file. The following screenshot shows the export function in the Arduino IDE:

    Werbung:

    Upload without Arduino IDE

    For the ESP32 there is an own flash tool, which can upload the previously exported BIN file. This is especially advantageous if the program is given to other people and there is no need to install an Arduino IDE. The Software and the instructions are in this article:


    Info: This page was automatically translated and may contain errors
    122X122

    About the Author

    Alex, the founder of AEQ-WEB. He works for more of 10 years with different computers, microcontroller and semiconductors. In addition to hardware projects, he also develops websites, apps and software for computers.

    Top articles in this category:

    ESP Program Export HEX/BIN & Flash Tool Upload

    ESP32 Flash Tool Upload

    • Video
    • DE/EN

    With the Flash Download Tool you can load exported programs (.BIN file) to an ESP32/ESP8266 without Arduino IDE.

    read more
    Arduino ESP32 TTGO SIM800 GSM GPRS Modul Overview

    Arduino/ESP32 SIM800

    • Video
    • DE/EN

    The SIM800 is a fantastic GSM / GPRS module. This article is about the commissioning and wiring of the SIM800 with an Arduino and the ESP32 (TTGO)

    read more

    Social Media

    YouTube

    Werbung:


    New Posts


    Events

    • Keine zukünftigen Events vorhanden