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

Startup.a51

Is it always important to include the file "startup.a51"?

Should anything else be included for it to work properly?

Thanks

Parents
  •                 LJMP    ?C_START
    This code jumps to the start of your C code -- that is, main().

    Not quite.

    C_START is the start of Keil's 'C' runtime startup: this includes, among other things, the code to setup all the values of initialised variables.
    Once this code has completed, it then jumps to main().

    As someone else mentioned earlier, you can step through all this if you want...

Reply
  •                 LJMP    ?C_START
    This code jumps to the start of your C code -- that is, main().

    Not quite.

    C_START is the start of Keil's 'C' runtime startup: this includes, among other things, the code to setup all the values of initialised variables.
    Once this code has completed, it then jumps to main().

    As someone else mentioned earlier, you can step through all this if you want...

Children
No data