We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All, What different about hex and bin file, why the MUC that can be pragraming by these two format? Thanks!
Well, Sven gave you a pretty good answer on the "What" why the MUC that can be pragraming by these two format? I assume that should be "MCU?" :-) Actually, the MCU doesn't inherently "know" about either of these file formats; nor, indeed, any other file formats - they are simply different ways of storing & transferring your executable code. If you TYPE a HEX file, or open it in Notepad, etc, you will be able to read it; it is in a text format; If you TYPE a BIN file, or open it in Notepad, etc, you will just see loads of "garbage;" it is a binary format. The reason for having the HEX format is that not all interfaces (especially RS232 interfaces, particularly in the old days) can transmit binary data; converting it to the HEX format gives a text representation which can be transferred! The HEX format also adds checksums, which help to detect any errors in the transfer. The HEX format was devised by Intel, so is sometimes known as "Intel Hex" Motorola devised their own format to address the same need - known as "S-Records"