[External] [Valeo] Elf File Mismatch Hex File

Ahmed ABDELGAWAD-AHMED ahmed.abdelgawad-ahmed@valeo.com
Mon Nov 29 13:32:32 GMT 2021


Greetings,

I hope this email finds you well.

I have an issue while compiling and generating (.elf) file.
At the end of the (.elf) file we put 2 bytes CRC.
I found that the 2 bytes are not flashed correctly while using (.elf) file,
meanwhile the 2 bytes are flashed when using (.hex) file.
The (.elf) file symbols are used for debugging but the (.hex) file can not
be used for debugging.

These commands are used for generating (.elf) file:
$(EXECUTABLE_FILE): $(COBJECTS)
@echo $(SEPARATOR)
@echo Linking to $(EXECUTABLE_FILE)
@$(LD) -o $(EXECUTABLE_FILE) $(COBJECTS) $(LDFLAGS)


These commands are used for generating (.hex) file:
$(HEX_FILE): $(EXECUTABLE_FILE)
@objcopy -O ihex $(EXECUTABLE_FILE) $(HEX_FILE)
@Tools/HexView/hexview.exe $(HEX_FILE) /S /FA /AfFF /XI -o $(HEX_FILE)
@Tools/HexView/hexview.exe $(HEX_FILE) /AR:0x8000-0x1FFDF /S /CS13:@0x1FFE4
/XI -o app_crc.hex
@Tools/HexView/hexview.exe /MO:$(HEX_FILE)+app_crc.hex /s /XI -o $(HEX_FILE)
@rm -rf app_crc.hex

The CRC shall be flashed at address : 0x1FFE4

Can you help in this regard?

Thank you

*Ahmed Abd-Elgawad Elazazy*
Embedded Software Engineer
+20 01061914198
ahmed.abdelgawad-ahmed@valeo.com

VIAS EGYPT-Valeo InterBranch Automotive Software-
Smart Village, B 2207, 3rd Floor - 0000 -Cairo (EGYPT)
<https://valeo.com/>
[image: linkedin] <https://linkedin.com/company/valeo> [image: twitter]
<https://twitter.com/valeo_group> [image: youtube]
<https://youtube.com/user/ValeoGroup> [image: facebook]
<https://facebook.com/Valeo.Group/> [image: instagram]
<https://instagram.com/valeo_group>

-- 
*This e-mail message is intended for the internal use of the intended 
recipient(s) only.
The information contained herein is 
confidential/privileged. Its disclosure or reproduction is strictly 
prohibited.
If you are not the intended recipient, please inform the sender 
immediately, do not disclose it internally or to third parties and destroy 
it.

In the course of our business relationship and for business purposes 
only, Valeo may need to process some of your personal data. 
For more 
information, please refer to the Valeo Data Protection Statement and 
Privacy notice available on Valeo.com 
<https://www.valeo.com/en/ethics-and-compliance/#principes>*


More information about the Gcc-help mailing list