Hello Xiaofan, >With your script, I can flash the files and I can halt the target. >However the flashing is apparently not correct as it does not >work. Using lpc21isp it works.
first of all I think it is a checksum problem which control a valid user code. Take a look in the LPC2148 user manual. In you startup code the checksum was missing. 4.2 Criterion for a valid user code It is possible that the lpc21isp calculated the correct checksum and placed it in you code. But it could be possible that the J-Link had a problem too. Have other users problem with flashing the LPC2148? Best regards, Michael _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development