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

Getting Started with LPC2148

Hi all,
I am new to 32bit computing and I have choosen lpc2148 to start with. I am using uVision v4.00...
I have a LPC2148 dev board for which i have written a led-blink program and certainly it doesn't works.
Now what I have done is.

1. Created a new project. uVision asked for adding "startup file" I said yes .
2. Wrote a down to earth simple led blink program.
3. Build hex without error or warning. It 'ran' with meaningful results in debugger too. port getting written and erased, all's well.
4. Downloaded the hex file to my LPC2148 board with philips utility software. AND IT DOESN't WORKED. DID IT AGAIN N AGAIN. NO SUCCESS YET !

My only question is Does the startup.S file that is added automatically by uVision WORKS ???

Parents
  • Finallllyyyyy !!! It worked. All I did was checked on the option "USE MEMORY LAYOUT FROM TARGET DIALOG" on the "LINKER TAB" OF "OPTIONS FOR TARGET WINDOW" .. Thanks Guys.

    And I have one more question. If I want to use Interrupts ( Specifically Timer and UART receive Interrupts) DO I need to do some external settings( other than the usual register value writing in program ) OR just use

         void timer_interrupt(void)__irq {//I have a working example for this one
    }
    
         void uart_interrupt(void)__irq {//I don't have a example for making out this one !!!
    }
    
    


    and compiler will do rest ???

Reply
  • Finallllyyyyy !!! It worked. All I did was checked on the option "USE MEMORY LAYOUT FROM TARGET DIALOG" on the "LINKER TAB" OF "OPTIONS FOR TARGET WINDOW" .. Thanks Guys.

    And I have one more question. If I want to use Interrupts ( Specifically Timer and UART receive Interrupts) DO I need to do some external settings( other than the usual register value writing in program ) OR just use

         void timer_interrupt(void)__irq {//I have a working example for this one
    }
    
         void uart_interrupt(void)__irq {//I don't have a example for making out this one !!!
    }
    
    


    and compiler will do rest ???

Children
No data