lpcware

LPC 1788 JTAG not detect after flashing a code

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by soorajmannangal on Thu Nov 07 22:38:14 MST 2013
hi,

I just flash a code to my LPC 1788 controller, After that i cannot detect the JTAG port in the controller.

I am using HY-LPC1788-SDK Development Board, which contain NXP LPC1788. For flashing i use JTAG , and Keil v4

Following message come when i try to burn the code. Before burning this code it was working perfectly

HY-LPC1788-SDK Development Board

Keil Log during Compilation

####################--------------------------------------------------------------##########################
..Compiled

linking...
Program Size: Code=33020 RO-data=69132 RW-data=220 ZI-data=3180 
FromELF: creating hex file...
".\obj\TAI_3000RS.axf" - 0 Error(s), 2 Warning(s).
Load "D:\\Keil to IAR\\LPCBoardSoftware\\r0.1\\obj\\TAI_3000RS.AXF"
* JLink Info: Device "LPC1788" selected (512 KB flash, 64 KB RAM).
Set JLink Project File to "D:\Keil to IAR\LPCBoardSoftware\r0.1\JLinkSettings.ini"

JLink info:
------------
DLL: V4.50j, compiled Jun 26 2012 09:19:07
Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04
Hardware: V7.00
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull

* JLink Info: TotalIRLen = 4, IRPrint = 0x01
* JLink Info: Found Cortex-M3 r2p0, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
ROMTableAddr = 0xE00FF003
* JLink Info: Found Cortex-M3 r2p0, Little endian.
* JLink Info: TPIU fitted.
* JLink Info: ETM fitted.
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots

Target info:
------------
Device: LPC1788
VTarget = 3.300V
State of Pins:
TCK: 1, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints:          4
JTAG speed: 50 kHz

**JLink Warning: CPU is running at low speed (9947 kHz).
* JLink Info: J-Link: Flash download: Flash programming performed for 1 range (4096 bytes)
* JLink Info: J-Link: Flash download: Total time needed: 6.436s (Prepare: 3.559s, Compare: 0.275s, Program: 1.216s, Verify: 0.274s, Restore: 1.109s)
***JLink Error: Bad JTAG communication: Write to IR: Expected 0x1, got 0x0 (TAP Command : 10) @ Off 0x15D.
* JLink Info: CPU did not halt, trying to disable WDT.
***JLink Error: Failed to halt CPU
***JLink Error: Can not read register 15 (R15) while CPU is running
Erase Failed!
Load "D:\\Keil to IAR\\LPCBoardSoftware\\r0.1\\obj\\TAI_3000RS.AXF"
* JLink Info: Device "LPC1788" selected (512 KB flash, 64 KB RAM).
Set JLink Project File to "D:\Keil to IAR\LPCBoardSoftware\r0.1\JLinkSettings.ini"

################--------------------------------------------------------------------------------------------------------##############


After above operation when i try to compile again this message comes

#####################--------------------------------------------------------------------########################
JLink info:
------------
DLL: V4.50j, compiled Jun 26 2012 09:19:07
Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04
Hardware: V7.00
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull

* JLink Info: Could not measure total IR len. TDO is constant high.

#######################-------------------------------------------------------#####################################


Please help me to overcome this problem

Outcomes