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.
You haven't said which product you're using, or what error you're getting, so it's impossible to say! Have you looked in your Examples folder...?
how to write Assembly code in C language using KEIL software(C51) . example: void main(void) { int i; i = 0; while(1) { i++; setb P1.0; // assembly instruction delay(); clr P1.0; // assembly instruction } } please mail a copy to my e mail id vinay_attavane@rediffmail.com
"how to write Assembly code in C language using KEIL software(C51)." Why are you posting a C51 example when this thread is (now) clearly about ARM7?? You need to read the C51 Manual - it details the specific features and extensions of C51 that give you access to things like the 8051's ports and pins, bit-addressable objects, different memory spaces, etc, etc,... Don't even think about trying to do inline assembler before you thoroughly understand what C51 provides directly in 'C'!!
Hi Divyakumar, You appear to be using the RealView ARM tools from the assembler syntax in the snippet that you posted. __main is the entry point to the C library which needs to be called if you have C code in your project. It will eventually call main(). Your fix for this is not valid so. Check to see if you have the "Don't search Standard Libraries" option in the linker tab selected as these are present in these libraries. ro-base is the start address of the read-only section which obviously needs to be specified in some way to the linker. You are using the free downloaded version so this is being obtained from the information in the Target tab. Check that the information in this tab is correct.
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 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.
View all questions in Keil forum