We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i am new to arm controller.... i am using keil micro vision 3........... while building my code it shows... ***************************************************** startup.o(.text+0x12c):/cygdrive/f/CHECK/check_uart/Startup.s:256: undefined reference to '_start' ____________________________________________________ startup.o(.text+0x140):/cygdrive/f/CHECK/check_uart/Startup.s:256: undefined reference to '_data' ***************************************************** WHAT IT MEANS.......... i am using lpc2148...... i want to learn it properly........ if it is possible give me the maximum details.....links.......
=> still i am in trouble <=
What kind of trouble?
Where did you get the source code?
its my own code for lpc2148 uart i am sending my code........
#include <LPC21xx.H> typedef unsigned char U8; typedef unsigned int U16; typedef unsigned long int U32; void uartInit(); void serialTrans(U8); void main() { //VPBDIV = 0X02; uartInit(); serialTrans( 's' ); while(1); } void serialTrans( U8 put ) { U1THR = put; while(!(U1LSR & 0X20)); U1LSR &= 0XDF; } void uartInit() { PINSEL0 |= 0X00050000; U1LCR = 0X80; U1DLL = 0X5D; U1DLM = 0X00; U1LCR = 0X03; }
If this is the case, then I think that you should follow Andy's advice first.
See this:
http://www.keil.com/support/man/docs/gsac/gsac_createapps.htm
One more thing, do you have your own LPC21xx.H?
In your case, you should have only two files, one is your code, another is KEIL's startup code.