Go to previous topic
Go to next topic
Last Post 04 Mar 2005 10:51 AM by  Anonymous
Keil PK-ARM Example Code for SDK75401
 1 Replies
Author Messages
JohnHills
New Member
New Member
Posts:


--
09 Feb 2005 02:23 AM
    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
    Anonymous
    Posts:


    --
    04 Mar 2005 10:51 AM
    John,

    This may or may not be the issue but have you looked at this FAQ?

    http://www.logicpd.com/su...aq/faq.php?faq_id=29

    Have you tried compiling the Logic Zoom Sample App with the Keil compiler? If it works then your code may be the cause of the issue.

    Thanks,


    ---