how to export bin file from arduino ide | convert .ino to .bin file in arduino ide

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello all welcome back to my channel Mission critical I hope you guys are doing absolutely fine today we are going to cover a very important yet unspoken topic let's say you have completed your entire project and you have done it an amazing way and it's time for production let's say you have to upload that same specific code into hundreds and thousands of microcontrollers and let's say you have completed this entire project in Arduino IDE now how do you export the binary files how do you export the partition table the bootloader the scripts data and everything well you don't have to worry about that anymore I have brought a very amazing solution for that specific problem we are going to cover this specific video for esp32 microcontrollers but the method remains same for any microcontroller that you use so let's jump into the computer and start our video [Music] for this tutorial we will need Arduino IDE flash tool and the firmware which we need to burn on our esp32 board on the hardware part we need the esp32 hardware which we are planning to burn the code into Step 1 prepare the Arduino IDE before starting to burn the code we need an example code for which I am using a simple spiffs reading code which will read and spit out the file content on the serial monitor now that we have a code that we can burn on our esp32 board let's go to our Arduino ide's preference and select the upload option at show verbose output now we are all set Step 2 upload the data for your spiffs this step is only required if you are using a SPI ffs in your code if not you can skip this step to the next one using the timestamps to upload the data content of your sketch which in my case is a simple text file we will use the esp32 sketch data uploader tool if you don't already have this tool head over to the link in description where you can download this tool simply extract and copy the esp32fs folder open your Arduino IDE preferences and head over to your Sketchbook location in this directory go to the tools folder and paste the esp32fs folder which we had copied before now all you have to do is restart your Arduino IDE after restarting your Arduino IDE you shall be able to see the esp32 sketch data uploader option under the tools menu now create a folder named data in the directory where you have saved the Arduino code and paste all the data required to be uploaded in the esp32 board in this specific data folder now let's upload this data into esp32 using the esp32 sketch date uploader option which we saw earlier this tool has created a binary file for the data that we have stored in the data folder as seen in the command window of the Arduino IDE if we scroll a little further it says writing at 0x 0 0 29 000 this 0x29000 is the memory offset for our 4mb spiffs data which has to be written on the flash memory of esp32 Chip create a notepad and copy this address along with the directory of spiffs Bin file step 3. upload the code to your esp32 board using the upload button upload the sketch into your esp32 chip with all the settings as seen on the screen except for your com port you can check your com port in your device manager under the ports tab once uploading is done scroll up the command window and you will see one line containing all the configuration settings directories of bootloader partition table configuration bin file and all of the addresses offsets copy this entire line in notepad we will need this directories and offset address in our next step 4 flashing your esp32 board using flash tool first download the flash tool by espressif you can do it by clicking on the link in the description or by Googling the esp32 flash tool once downloaded open it and a pop-up shall appear in which you have to select esp32 as your chip type and Factory as develop option next unlock the settings by deselecting the lock settings option let's connect the hardware which has to be programmed to our computer for this example I am using two esp32 boards one of which is connected to com Port 3 and another one is connected to com port 7. I will select com Port 3 on the download panel 1 and com Port 7 on download panel 2. copy and paste the directory and address offset from the notepad from the previous step click on start all and 5 binary files shall be written on both the esp32 chips this can be confirmed when you open the serial monitor it shall show the file and the file contains you can copy all these five bin files and save it separately and provide this pin files to production thus you won't have to share your source code with anyone if you happen to Outsource this production work so guys that's all for this video I hope you guys enjoyed this video and learned a thing or two if you guys like this video give it a like share it with your friends and don't forget to subscribe to Mission critical I will see you guys in the next video Until That goodbye foreign [Music] [Music]
Info
Channel: Mission Critical
Views: 8,472
Rating: undefined out of 5
Keywords: how to export bin file from arduino, create bin files with sketch on arduino ide, create .bin binary files with sketch on arduino ide, generate bin binary files with arduino ide, generate export bin binary file sketch arduino ide, Arduino Export compiled Binary, Arduino binary file location, spiffs
Id: KlDTuj54aRs
Channel Id: undefined
Length: 7min 24sec (444 seconds)
Published: Tue Oct 18 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.