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

need meaning full details for start up code of lpc2148

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.......

Parents
  • 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;
    }
    

Reply
  • 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;
    }
    

Children