When i produced two bin(one and second) file with mdk tools fromelf.exe,the difference of the two bin files is the second bin file only more than a single one code in source project. so when i compare the two bin files in hexeditor,the two file has many differences. I want to find the difference between the two files,and update the difference into stmf10x flash,but the two bin file has many difference,is this way whether could solve the problem,please help me. thanks
With binaries, changes are going to be accumulative and compounding. There isn't a simple one-to-one comparison. Where there are similar code sequences, they may be displaced, you'd have to search for such patterns to realign/resync the streams. Delta/patching methods are similar to compression techniques, you're looking for repeated sequences of symbols, in the case of Cortex-Mx/Thumb 16-bit words, and 32-bit for ARM