Problem using HTAG with olimex LPC2148 board

Hello

I am having one LPC2148 Board from Olimex. I was trying to use HTAG for ADS1.2 and Keil .

I have installed HTAG V0.3.1 Build 20060629 and done all the settings as per given by olimex

it is detecting ARM7TDMI-S device with id 0x4F1F0F0F .

When I satrt Flash programmer and press check button that time it is showing LPC2148 id OX0402FF25

it is blank checking, Erasing flash very well but when i program it it gives message "Error Can’t Program Flash "

I am not able to download the program can you pls tell me possible reason and how to operate this properly.

But when I am using Philips flash utility it is working properly.

while putting Code in Flash i had tried to debug using keil it is working fine for RUN mode. For Step DEDUG mode after one or two steps it comes out and glows both the LEDs it also turn ON USB link LED and message is in PC ie USB device is not recognise. (I am powering this board from USB and only one LED should blink as per program) When I reset the board and trying to connect server tit gives message "Failed to enter in Debug " .When I switch OFF and Then ON the power then it goes into debug State.

Kindly Advice…

Regards

Girish Wabale

For ARM MCU with flash memory downloading using ADS, you need to have flash downloader to be implemented first. Normally your flash downloader should be resided and executed in RAM.

Keil has flash downloader already implemented for many ARM MCU with integrated flash. So whenever you see the supported device from the pull-down menu when creating new project, the flash downloader is there ready for you.

For debugging code in flash, you need hardware breakpoint. Unfortunately there are 2 hardware breakpoints available for ARM debug unit. So you can debug code in flash but you have to make sure there is no more than 2 breakpoints. J-Link JTAG has add-on to set unlimited flash break point, but you have pay for the license to enable it.

Hope these help.

JSL