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.

  • resp. sir ,
    i dont know hoe come this C51 post came in.
    its not me who posted it in here,the author is some other guy. n my self is divyakumar.
    i am sorry but i didnt post this c51 and don't know how it came in this thread.

  • resp. sir,
    in keil mVISION3 ,i am using realview tool and for new project i opted device LPC2101 of phlips.and added to it the 'startup.s' file then the file with my assemble code i added,which was a ".s" file.containing
    TTL ch4ex1 - move16
    AREA Program,CODE,READONLY
    Main
    LDRB R1,Value
    STR R1,Result
    SWI &11

    Value DCW &C123
    ALIGN
    Result DCW 0

    END
    i then builded the target and found the following error:
    undefined symbol _main(referred frm startup.o)
    indefinrd symbol _use_two_region_memory (referred frm startup.o)
    whics is same when i posted my first query.
    can you please help me getting the taget bulid and also tell me if i am reght that we can use "keil microvision3" for assembly language coding of embeded systems.

  • hi!
    'target tab' ,i think , is the one present in
    "option for target 'target1'" window which will come from "target1" present in "project workspace" window. if so far i am correct then the "target " tab in "option for target 'target1'" window has "read/only memory areas "on chip " and "off chip" fields and in former ROM1 , ROM2,ROM3 spaces are blank and in latter IROM1 has default 0X0 as starting and 0x2000 for size fields.
    please help me what should i do to over come the error which says:
    INVALID VALUR FOR --ro-base

    and if my location of "target tab" is not correct then please tell me which "targer tab" you are refering to?
    thankyou

  • Check the field R/O Base in the Options for Target->Linker Tab. This specifies the value for ro-base that is passed to the linker.

    This should have been automatically filled in with the information from the Options for Target->Target tab but may have been subsequently changed.

    If the R/O Base field is blank or contained a non-word aligned value, you will get this particular error.

  • resp.sir
    i am learning the arc coding techniques and building of target using "keil development tool." so far i an in position to write code and generate the .hex file but have no idea what are the steps taken to burn the core for the functionality.please help me and also tell me if it needs some software or hardware needed for the process.

  • resp.sir
    i am learning the arm coding techniques and building of target using "keil development tool." so far i am in position to write code and generate the .hex file but have no idea what are the steps taken to burn the core for the functionality.please help me and also tell me if it needs some software or hardware for the process.