Closed karsten-burger closed 3 years ago
Hello,
It seems that your elf file is not recognized correctly due to wrong magic keys numbers into the header.
If you have got a msys or cygwin shell available on Windows, could you
please simply run firstly a 'file
You should get for the TC1797 CPU an elf32-tricore file format.
Using binutils toolchains here with a valid elf file should indicate:
$ ./tricore-readelf.exe -e example.elf | head n20 ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: Siemens Tricore Version: 0x1 Entry point address: 0xa0000000 Start of program headers: 52 (bytes into file) Start of section headers: 8124672 (bytes into file) Flags: 0x800000 Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 8603 Size of section headers: 40 (bytes) Number of section headers: 11806 Section header string table index: 1
$ ./tricore-objdump.exe -m tricore -d example.elf | head -n20
example.elf: file format elf32-tricore
Disassembly of section .text.DEFAULT_CODE_ROM:
8001f0c8
8001f0ce
8001f0d4
Hello Chebah, I think it was stupid of me: "file" gives result "data". The ELF magic key is missing, the first 8 bytes are "C0 00 00 00 00 40 00 00", I have a binary which is directly loadable into the TriCore1797 ECU, so this is no ELF file but just a binary image. Sorry to have bothered you.
Hi, I have two binaries for running with Infineon TriCore 1797.
when running the command
tricore-readelf.exe -h <binary>
I get the message:readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
With
tricore-objdump.exe -i
I get some results, likeThe binary is not very recent, created about 2014. What is wrong?