This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

from KEIL to hex file

Hi everybody,

Maybe my problem is considered as a trivial problem for others and nobody will answer me...
But for me as a beginner I feel that this problem is the life problem
So please help my life...

I have the kit C515C, Keil uVision2 and Flash tools 98
Flash tools 98 is working and can connect with the Kit but it needs a hex file to download it on the microcontroller.

I wrote a simple program on the Keil 'myprog.C',
Am not able to make a 'myprog.hex'

I went to tools menu > customize tools menu
But I don't know what I have to write their.

Do I have a program missing file or I should write specific command in the 'Command' or in the 'Arguments' space??
Please answer me, even if your answer is wrong it may lead me to a result.

Thnaks

Parents Reply Children
  • Thanks Mr/Ms. Andy

    But I already made this checkbox active...

    I was using the microcontroller P89C51RC2HBP and in the customize tools menu the information was as follows:
    Menu Content : 'Program with %H'
    Command : 'C:\Program Files\Flash Magic\FM.EXE'
    Arguments : 'DEVICE(89C51RC2Hxx,12.000) COM(2,19200) ERASEUSED(#H,PROTECTISP) HEXFILE(#H,CHECKSUMS,NOFILL,PROTECTISP) VERIFY(#H,CHECKSUMS) STATUSBYTE(0x00) BOOTVECTOR(0xFC)'

    The arguments specify for the uVision the type of the microcontroller
    and it was working fine for the P89C51RC2HBP

    Now I am using another system which is the KitCon C515C
    What changes I have to do?

    And thank you again for replying me

    Ashraf

  • The 'customise tools' menu has nothing to do with creating the Hex file!

    The settings you are talking about there are to do with downloading the hex file to your target using FlashMagic.