I bought olimex lpc2148 development board and connect it to wiggler board then use IAR and H-JTAG softwares.I powered up the board and its leds started to blink. H-jtag detected device and every thing was all right.then i opened an example project in IAR and build it ok.then i debug it and it program device automatically and opened debug page in IAR.i stoped debug and after that it can not detect device any more.
I bought olimex lpc2148 development board and connect it to wiggler board then use IAR and H-JTAG softwares.I powered up the board and its leds started to blink. H-jtag detected device and every thing was all right.then i opened an example project in IAR and build it ok.then i debug it and it program device automatically and opened debug page in IAR.i stoped debug and after that it can not detect device any more.
what happened?
is it possible that lpc2148 is damaged?
what is wrong?
It is possible, but not likely. Your code may have disabled the JTAG pins, or faulty PLL programing may have disabled the ARM clock. You should be able to set the jumpers on your Olimex board to cause the chip to stay in the bootloader on reset (ISP mode). That will keep any defective code from running, and the JTAG port will be active again if you did not set code read protection (CRP). Then you can use H-JTAG to erase the FLASH and try again.
Try to put ON the switch 1 on the dip switch then try to use the jtag again and flash some SAFE code, then return the switch to OFF. Doing so you prevent the serial bootloader to execute the faulty code present in flash.
You may use the flashing led program present on the Olimex CD or you may try the demo in the project in my signature (assuming you have the LPC-P2148 board).
You can’t compile it using IAR however, you need to install the YAGARTO toolchain or send a forum message to me and then I will email you a binary file.
thanks all for your replies.I think reset was the reason. Ii pushed the reset button and erase the program after that i can program my chip but sometimes jtag can not detect the chip and after 2 or 3 times reset it gets better.