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

C51.exe V957 problem

I met a problem on C51 platform.

When I use Keil5 (C51.exe V957) to compile a project build by Keil4 (C51.exe V954) , there's nothing fail, no error and no warning, but when I download the target code to my device, the device's out of control, like, some LED segments blinked occasionally.

There's one thing I think may be related to this phenomenon: the keywords like bdata and sbit. The project used bdata and sbit to define some variables, if I rewrite those codes used these keywords, then compile and download it to my device, it runs very well, but I can't judge if this is the true reason.

Hope to receive some suggestions, many thanks~

  • Moving from one version to another of any compiler is never a trivial exercise - not to be taken lightly!

    Plus you have also changed IDE.

    Have you done some simple test projects to see how the two compare?

    What steps have you taken to verify the output of the new against the old?

    eg,

    • have you compared MAP files for the overall build?
    • compared listing files for the individual compilations?

    Does your target support on-chip debug?

    keywords like (sic) bdata and sbit

    What do you mean, "like"?

    Is it exactly those? Also others? Or what?!

    But these are well-established parts of the 8051-specific extensions that have been provided by C51 for decades.