I am using uVision4 and have an LPC2103. After each reset the module desn't start directly (after 2 or 3 attempt) can you help me.
Consider a proper reset circuit that holds NRESET low for a few hundred milliseconds to assure a clean/consistent reset
Thank you for answering The problem is not in hard because I put another hex file and it works correctly.
Don't bet on that - a correct reset pulse will guarantee that the chip is in a known state. A too short reset pulse will leave the processor in an unknown state - and it can matter what state it was in before the too short reset.
So some programs can survive better if the reset pin isn't correctly handled. With a bad reset signal, the CPU core might be reset while some interrupt source might not have enough time to properly reset - and the end result is that you might get an interrupt that jumps into undefined memory.
So - a correct reset but bad software can (but maybe not always) give random failures. And correct software with a bad reset can (but maybe not always) give random failures.
In short - you need to make sure that both your code and your reset signal is correct.
View all questions in Keil forum