Finally, I've found the problem. A value of the MEMMAP register (it is used for memory mapping) was equal to 0x00 by default. In this case interrupt vector are remapped to boot block. If I exchange the value of this register for 0x01(in debugger mode), when the reset vector is reached the program works fine. In that case interrupt vectors are not remapped and reside in flash. So, I have to change the cstartup.s79 file. So far I use precompiled runtime libraries, then I must to write a piece of code. regards, hg --- In lpc2000@yahoogroups.com, "arm_beta_tester" <h11@o...> wrote: > > Hello, > > I've written a simple program for ARM LPC2138 to flash on and off LED. > I use IAR EWARM software. > When the code is debbuged everything is ok. > But when I disconnet JTAG HW and reset microcontroller, it's not starting. > > I noticed that if I disconnect the supply voltage and immediately > after that connect the plug program starting. > > Regards > > Hubert Gawinski >
Message
Re: program starting problem
2005-12-07 by arm_beta_tester
Attachments
- No local attachments were found for this message.