avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Version/Signature in Flash


From: Jim Brain
Subject: Re: Version/Signature in Flash
Date: Wed, 19 Jan 2022 10:21:00 -0600
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.5.0

On 1/19/2022 10:05 AM, Michael Kwasnicki wrote:
I am not sure if I got it right.
The linker is only involved until the .elf file has been created.
If the question is to pad out the content of the .hex file so it is one continuous block then it can be done with :

avr-objcopy -j .text -j .data -j .my_signature --gap-fill 0xFF -O ihex prog.elf prog.hex 

The gap-fill argument fills the blanks with a specific value (0xFF in this case).

You are correct.  I thought the work was done in the linker.  In the above case, though, does the output have <code> <padded bytes up to max code space> <my_signature>?  That appears to be the requirement in the resulting file.

Jim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]