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.
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 ???
Note that when you create a new project, there are many, many, many settings in the project configuration.
Have you compared these settings between your newly created projects and with the reference applications that does work? Make sure that the settings are the same - or that you properly understand the meaning of the specific settings so you know if it is ok to use different values between your project and the already working examples.
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 ???