I am using the LogicPD SDK75401 Board with Keil PK-ARM Compiler 2.00. Compiling and downloading Logic sample code with Logic-supplied GNU works fine. Compiling Keil example code for LH75401 on SDK75401 with Keil-supplied GNU causes following error when trying to download with LogicLoader (LOLO).
mh data is incorrect for > 1 program header(!)
elf file type : 0x0002
machine type: 0028 version: 1
prog start addr : 0x80000000
num prog headers: 3
num sect headers: 16
offset : 0x2a2a2a00 disk length: 0x00000094 mem len: 0x80000000
phyaddr: 0x8ee20000 vaddr : 0x0a0d2a03 dl addr: 0x80000000
elf load failed.
It looks as if the ELF file isn't valid. Does anyone know what "mh data" is? The offset and vaddr values, as seen by LOLO, look wrong to me.
The Keil example code compiles to internal RAM, but I have tried re-compiling for SDRAM and for FLASH, but both give same error.
I have used arm-uclibc-readelf and the file seems OK to me.
The example code is from:
C:\Keil\ARM\GNU\Boards\Sharp\LH75401\Hello\RAM
Any ideas?
Thanks
John