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

Keil is not generating the right hex file

Hi all
I've just started using Keil C51. The first thing I did was to try an compile an example which I already had its hex file(this was compiled by Keil as well). the problem is that when I comiled the source code using Keil it compiled and linked fined and generated a hex file, however, this hex file is not working as expected ...
I made sure that I am using the right device and the right configuration.
can anybody help?
Thanks

Parents
  • hi Oleg
    I am using AT89S8252.
    Yesterday,I viewed the hex file using a the programmer I am using. With the working hex file, the program starts at the address 00000 and finishes at 000E0, however for the compiled one (using C51) I get the same program but it starts from 00800 and finishes at 008D8 ... there is some diffrences at the start and the end of the code but the code is the same. !!
    This code should count up from 0 to 9 and display these digits on 7 seg display.
    I think that there is problem with the compiler maping ...

    Any ideas C gurus...

    thanks

Reply
  • hi Oleg
    I am using AT89S8252.
    Yesterday,I viewed the hex file using a the programmer I am using. With the working hex file, the program starts at the address 00000 and finishes at 000E0, however for the compiled one (using C51) I get the same program but it starts from 00800 and finishes at 008D8 ... there is some diffrences at the start and the end of the code but the code is the same. !!
    This code should count up from 0 to 9 and display these digits on 7 seg display.
    I think that there is problem with the compiler maping ...

    Any ideas C gurus...

    thanks

Children