bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/27214] Outputting hex file with --verilog-data-width 4 use


From: shareef at jalloq dot co.uk
Subject: [Bug binutils/27214] Outputting hex file with --verilog-data-width 4 uses incorrect offsets
Date: Wed, 14 Dec 2022 14:26:30 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27214

--- Comment #2 from Shareef Jalloq <shareef at jalloq dot co.uk> ---
I'd long forgotten I even opened this ticket... and guess I have no confidence
that it will ever be fixed given no one has accepted it in 2 years....

In the meantime you can use srec_cat to output Verilog Hex (VMEM) formats. 
Here's an example of our Makefile targets:

$(BUILD_DIR)/$(BIN).hex: $(BUILD_DIR)/$(BIN).elf
        @echo "  IHEX    $(notdir $@)"
        $(CMD_ECHO) $(OBJCOPY) -O ihex $< $@

$(BUILD_DIR)/$(BIN).32.vmem: $(BUILD_DIR)/$(BIN).hex
        @echo "  VMEM    $(notdir $@)"
        $(CMD_ECHO) srec_cat $< -intel \
                -fill 0xFF -within $< -intel \
                -range-pad 4 \
                -crop $(START) $(END) \
                -offset -$(START) \
                -byte-swap 4 \
                -output $@ -vmem 32

$(BUILD_DIR)/$(BIN).128.vmem: $(BUILD_DIR)/$(BIN).hex
        @echo "  VMEM    $(notdir $@)"
        $(CMD_ECHO) srec_cat $< -intel \
                -fill 0xFF -within $< -intel \
                -range-pad 16 \
                -crop $(START) $(END) \
                -offset -$(START) \
                -byte-swap 128 \
                -output $@ -vmem 128

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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