New to assembly, I'm surprised to see that we need to use avr-objcopy
after invoking avr-as
, in order to obtain an Intel Hex file, so where does this come from ?
Electronic – Why do we need to use `avr-objcopy` after `avr-as`
assemblyavr
Related Topic
- Electronic – AVR ATtiny2313 fuse-bit confirmation
- Electronic – AVR microcontrollers, who initilizes assembly `data` segment and what is the purpose to have this directive
- How Do I Set The Bitclock in a Make File for AVR
- Electronic – How does the BRGE instruction work in assembly? Why is this code not functioning properly
- Electronic – Why does the AVR Assembler linker think the data table is at the wrong address
Best Answer
The
*-as
is the GNU Assembler utility, used to produce binary object files*.o
. This format is incompatible with the Intel Hex format, which is basically plain text file, containing the binary data encoded with its textual representation.objcopy
is capable of extracting the binary information in one format and translating it to another. And it is what it does.