lpc2138 program not running

Hello,

I had previously made a program that ran on the lpc2138/01 chip using the olimex dev board available on sparkfun, however after 6months i need to alter a few things but I have forgotten most of the basics. I know how to code is meant to work and how to talk to program the chip, which I am using the Olimex ARM-USB-TINY.

So my problem is this: I can get a program that toggles an LED every 20ms, but it only works when I’m in the debugging mode in CrossStudio for ARM, I can then unplug the programmer and the code continues to run, however if i then press the reset switch the program doesnt recommence, nor does the code automatically commence when I reprogram the LPC2138/01 chip, although I am fairly positive that this was the case previously.

Is there something simple that I am forgetting to do?

I have attached the .s file for reference.

You need to enable START_FROM_RESET. You should find details in the FAQs on the Rowley web site.

thank you for that. adding the definition fixed that problem,

however i have a stranger problem now, I have 2 boards, one is the dev board by olimex and another is a prototype board that I have made myself. With the dev board the program automatically starts both after flashing the chip and after hardware reset. However I can only get the program to automatically start after being flashed on my prototype board, and it doesnt start after a hardware reset.

Is there anything that could cause this problem?

Sounds like a problem with your reset circuit. Check that the signal is actually getting to the pin on the LPC2138.

i did find the problem, upon reset my lpc2138 would enter the ISP boot loader, because i had left pin P0.14 floating, and so I remedied the problem by putting a pull up resistor. Upon doing so the lpc2138 was able to complete a normal startup on reset and continue with the program