From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by sourceware.org (Postfix) with ESMTPS id 134843835C36 for ; Mon, 29 Nov 2021 13:32:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 134843835C36 Received: by mail-yb1-xb32.google.com with SMTP id v64so42315236ybi.5 for ; Mon, 29 Nov 2021 05:32:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=qLgqv9qizprNIeOMs/jKoZ1OvAGX/6rxTS49/9KpReY=; b=IE1n9DEt0SzOOJuIuo52KwIbbBfKY0klhRkLPAJ6/+sIir3YAmN9VOaTDqQJFhQ/c/ EwPeK4ZEcz0PJSsPBn5JgBptIfeod3hD53f3mdauwQ5mvOGJit4tDbxfKI+iucxQd4eD Vwe7X8sYlJjyfcjdRrnV2NH5GkHb0EQGhfKLuTrMLYOBcnH1kVLG7D0tdfJIYKYSxsc4 8djEeoVRN5gRkw0+f6CR3UHRRkSTh2NgsvnqNLIoWCjwk63QEzjj0muhYynWkyaPIxdz kaVWX356rAj52xbHlhaXMHGMG7v4kKY5wg/gC7Y3Z5PLOMZUqAakC4/Aie8L1bW8/kwF ZglA== X-Gm-Message-State: AOAM5332KsYYG4Hh5J2Zp0Xukq2q9HAciGthyvJJ+7zkGAW5ik6lUSTd Bvh8G5j2MP2zOgBIYh5PFcVZVCOTjevve2Yss5d6D1ioh6YhzPD2lKbJZcvmG9dia1S2jmuSO9g 9P+4JglUYYZlkAWq+oFFw962TJOykxPiC X-Google-Smtp-Source: ABdhPJwVjoC301DZyloYYskqD9yEQjBRiofuQs3U/bcRuAGf7MHBKnu8ZYEoBU0Ov+mkf80G2NYO/5pGVWeFuNuFsGI= X-Received: by 2002:a25:ce13:: with SMTP id x19mr6767580ybe.639.1638192763335; Mon, 29 Nov 2021 05:32:43 -0800 (PST) MIME-Version: 1.0 From: Ahmed ABDELGAWAD-AHMED Date: Mon, 29 Nov 2021 15:32:32 +0200 Message-ID: Subject: [External] [Valeo] Elf File Mismatch Hex File To: gcc-help@gcc.gnu.org Cc: Menna ELMADDAH , Ehab SAYED X-Spam-Status: No, score=4.3 required=5.0 tests=BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, LIKELY_SPAM_BODY, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_REMOTE_IMAGE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2021 13:32:46 -0000 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) [image: linkedin] [image: twitter] [image: youtube] [image: facebook] [image: instagram] -- *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 *