Knowledge Base Article
How can I change the start address of my Intel-format hex file to a different location?
Description
The start address of an Intel-format hex file can be changed using the nios2-elf-objcopy utility included in Nios II EDS. To change the start address, you must use the "--change-addresses" attribute with the start address you require. For example:
nios2-elf-objcopy --change-addresses 0x300000 <inputfile>.hex <outputfile>.hex
In the resulting hex file <outputfile>.hex, the addresses of all the data will be offset from the new start address of 0x300000.
Updated 2 months ago
Version 3.0No CommentsBe the first to comment