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

order of executing programms

Hello,

I've one simple question about the order of the three programm parts (my c-programm, startupo-script, init-file definitions), when I download and execude the code in a external / internal flash device?

Is the init-sequence or the startup-file the first file, which will be executed?

best regards
Hans

Parents
  • What are you actually referring to here?

    The only thing that actually gets downloaded & runs in your microcontroller is your 'C' program.

    Part of your program is the startup code, which prepares things that the 'C' runtime library, etc, depend upon; eg, setting-up the stack, initialising variables, etc...
    Effectively, it is the startup code which "calls" the main() function in your 'C' program.

    The startup code as used by C51 is described here: http://www.keil.com/support/man/docs/c51/c51_ap_customfiles.htm

    I'm not sure what you mean by "init-file definitions" - are you talking about the debugger here?

Reply
  • What are you actually referring to here?

    The only thing that actually gets downloaded & runs in your microcontroller is your 'C' program.

    Part of your program is the startup code, which prepares things that the 'C' runtime library, etc, depend upon; eg, setting-up the stack, initialising variables, etc...
    Effectively, it is the startup code which "calls" the main() function in your 'C' program.

    The startup code as used by C51 is described here: http://www.keil.com/support/man/docs/c51/c51_ap_customfiles.htm

    I'm not sure what you mean by "init-file definitions" - are you talking about the debugger here?

Children
No data