How to generate Hex file from Arduino IDE?

Hello friends, hope you all are fine and having fun with your lives. In today's post, I am gonna share How to get Hex File from Arduino. First of all, let's have a little introduction to it. If you have worked on PIC Microcontrollers or Atmel etc then you have seen that you always get hex file from their compilers and then you burn that hex file in the respective Microcontroller using their programmer or burner. But that's not the case with Arduino. 

In Arduino boards, you simply plug it with your computer and you hit the Upload button and the code automatically gets upload in Arduino boards. It doesn't create any hex file. You should also have a look at Arduino Library for Proteus in which you can upload this hex file. So, now the question arises that why we need the hex file in the first place when we can upload the code without it? The answer to this question is, there are many cases when the hex file is required. For example, instead of using Arduino board you just want to use the ATmega328 or Attiny microcontroller then the easiest way is to write the code in Arduino and then get its hex file and upload it in your microcontroller, which makes the task quite easy. 

Another example is Proteus simulation, when you want to simulate your Arduino board in Proteus software then you need to get the hex file so that you can upload it in your Arduino board. Another case is freelancing, when you are working on some project as a freelancer, then there are many cases when you don't wanna send your code to the client, instead you want to send the hex file to him so that he can test and verify the code, in such cases it also required. 

So let's get started with how to get hex file from Arduino. I have explained the steps in below youtube video.

Please check::



Thanks, Like and Share !!!