How to upload .HEX file on to Arduino Board

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello all in this video we will see how to upload dot x file onto an arduino board this dot hex file might be created for avr processor or you might have arrived from arduino ide first let us locate where the dot hex file is created while using arduino ide go to c uses and then click your user name inside this you will see a folder app data this is a hidden folder if you do not see this folder then go to view and then put a tick mark against view hidden files now you can see the app data folder open this app data folder and say that another folder local is there click on that local folder inside that you can see arduino 15 folder inside this folder you can see the preferences of your arduino boards and the boards manager configuration suppose you are installing esp32 or usb node mcu you will see the boards manager definitions here but we are interested in temp folder this as such a windows folder go to the temp folder this is a temporary folder and keep open this folder and open the arduino ide now open an example let us say blink example let us open it and then click on compile now notice the changes inside the temp folder while compiling is done a folder is automatically created inside temp arduino build folder a separate name is given a number is given for each compilation or you know build and then followed by that number a folder is separate folder is created for each compilation once the file is compiled inside this arduino build folder you can see the dot hex file as well as you can see the dot hex along with bolt loader also we are interested in this dot x file copy this dot hex and then paste it in a separate location as uh if you close the arduino ide this temporary folder may be deleted so copy this dot hex file and then place it in a separate folder now let us see the methods of fusing this dot hex file will be using avrdudes a gui interface a nice interface which which uses avr dude commands in the back background download link is given in the description you can download the executable file or a standalone folder we'll use the dot setup exe file we'll download it and then start installing by double clicking the downloaded file once the installation is complete you can open the avr dudes application this is the welcome screen at the top you can select the programmer select it as arduino as we are using arduino to upload the dot hex file we will select arduino the other possibilities are usb asp and stk500 and huge list is there we'll select usb we'll select arduino and then select the com port we'll select the com port of arduino and baud rate is 115200 and then click on the browse button to select the dot x file we have pasted the dot hex file in a separate folder browse to that location and select it we are not using any e square prompt and we need verifications so untick this in this selection and mcu select it as atmega328p as in arduino we use atmega328 ic select that as a microcontroller and under uh presets select arduino you know atmega328p this is very important if you do not select preset you cannot program it now the fuse bits are all displayed do not change any fuse bit now click on program now we get an error as we are not selected correct com port select the correct com port and then click on program again now the hex file is being uploaded successfully you can see the avr dude command automatically generated for you you by this save your dudes in this area dude command generated first the programmer is selected as arduino by using the hyphen small c and then the processor by using hyphen small p the processor is m128p and the programmer is arduino and then the port is selected by using the hyphens capital p and then the baud rate by using hyphen small b this avr dude command is executed for uploading the hex file now let us see the second application arduino builder this is also a nice graphical user interface download link is given in the description below you can download and then open the dot exe file arduino builder dot exe file this is the welcome screen of arduino builder first you have to select the board type as arduino you know and then the crystal is 16 megahertz and click on load dot x file you can also upload sketch also dot ino also now we are using it for dot x file browse to the location of dot x file and select it and then you can click on build to build the to start the compiling process as you are not using ino file this is not necessary you have to select the arduino isp there is also another option usb asp but you have to select arduino isp and then the com port first when you select the arduino sp it will become red and then select the com port to upload the hex file now the hex file is uploaded successfully you can see the log and report also thank you for watching
Info
Channel: Saravanan AL
Views: 48,704
Rating: undefined out of 5
Keywords: hex file upload, hex file Arduino
Id: Wcaql0jtlUg
Channel Id: undefined
Length: 6min 39sec (399 seconds)
Published: Mon Apr 19 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.