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

assembly coding in keil

hi!

i tried buliding target in keil in assembly language and it gave a cryptic error..
can anyone help me figure out how to build target or run a assembly language written code in keil... i can well do it in C but unable to figure it out using assembly....
Thanks.

Parents
  • "thought it would help hasten the process"

    It might save you the odd second or two of typing (although "wannna" is no quicker than "want to"), but it means that every one else has to struggle to decipher your meaning!


    " i used STARTUP.S: Startup file for Philips LPC2000 ... contained a very simple programme:"

    No, it is not a program!

    This is the code that runs before a 'C' program can start - it sets up all the stuff required for the 'C' program.
    It is not a program in itself - that's why you are getting the errors:

    "undefined symbol _main (referred frm startup.o)"

    As you know, every 'C' program starts with a function called main().
    As it's a function, something has to call it - in the case of an embedded system, that "something" is the startup code!

    The startup code is meaningless on its own - its whole raison d'etre is as a preamble to the main 'C' code!

    "tring to use KEIL microversion3 arm development tool kit ....which i dowmloded"

    Note that's "microvision" - not "microversion"

    That download comes with a whole folder full of examples - take a look for an assembler sample.

Reply
  • "thought it would help hasten the process"

    It might save you the odd second or two of typing (although "wannna" is no quicker than "want to"), but it means that every one else has to struggle to decipher your meaning!


    " i used STARTUP.S: Startup file for Philips LPC2000 ... contained a very simple programme:"

    No, it is not a program!

    This is the code that runs before a 'C' program can start - it sets up all the stuff required for the 'C' program.
    It is not a program in itself - that's why you are getting the errors:

    "undefined symbol _main (referred frm startup.o)"

    As you know, every 'C' program starts with a function called main().
    As it's a function, something has to call it - in the case of an embedded system, that "something" is the startup code!

    The startup code is meaningless on its own - its whole raison d'etre is as a preamble to the main 'C' code!

    "tring to use KEIL microversion3 arm development tool kit ....which i dowmloded"

    Note that's "microvision" - not "microversion"

    That download comes with a whole folder full of examples - take a look for an assembler sample.

Children