LPC-Link2 : Unable to parse register descriptor: not matched:AP_ID = 0x04770021

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC-Link2 : Unable to parse register descriptor: not matched:AP_ID = 0x04770021

807 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Trimpim on Mon Oct 27 00:42:51 MST 2014
Hello

I use LPCExpresso 7.4 on Windows 7(64Bit) and a LPC-Link2 debug probe.

Often I get the two error boxes with the error message Unable to parse register descriptor: not matched:AP_ID = 0x04770021 right after startup.
I still can debug, but on every breakpoint I get the two error boxes again. Except the error message debugging works (but is seems to be much more slow). Sometimes there are no error messages and debugging works just fine.

Details in first error box
Unable to parse register descriptor: not matched:AP_ID = 0x04770021
  at com.crt.debugcommon.stub.StubRegister.parseRegisterDescriptor(StubRegister.java:1003)
  at com.crt.debugcommon.stub.StubRegister.<init>(StubRegister.java:673)
  at com.crt.debugcommon.stub.StubRegister.parse(StubRegister.java:384)
  at com.crt.dsfdebug.dsf.commands.info.StubRegisterDisplayCoreRegInfo.getResult(StubRegisterDisplayCoreRegInfo.java:91)
  at com.crt.dsfdebug.register.mi.CRTMIRegisters$3.handleSuccess(CRTMIRegisters.java:1047)
  at org.eclipse.cdt.dsf.concurrent.RequestMonitor.handleCompleted(RequestMonitor.java:376)
  at org.eclipse.cdt.dsf.concurrent.RequestMonitor$2.run(RequestMonitor.java:303)
  at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)


Details in second error box
Unable to parse register descriptor: not matched:AP_ID = 0x04770021
  Nt: Flash Write Done
  Nt: Flash Program Summary: 9456 bytes in 1.85 seconds (5.00 KB/sec)
  Wc: ============= SCRIPT: LPC12XXReset.scp =============
  Os: LPC12XX Reset Script
  AP_ID = 0x04770021
  Wc: ============= END SCRIPT ===========================
  Nt:
  [Core Registers]
  {r0}R0=0x00000000
  {r1}R1=0x00040020
  {r2}R2=0x00000002
  {r3}R3=0xFFF80000
  {r4}R4=0x40048000
  {r5}R5=0x40048000
  {r6}R6=0x12345678
  {r7}R7=0x000000E4
  {r8}R8=0x20070402
  {r9}R9=0x00410182
  {r10}R10=0x00B18500
  {r11}R11=0x80048400
  {r12}R12=0x0000C186
  {sp}SP=0x10002000
  {lr}LR=0x1FFF0ADD
  {pc}PC=0x000000FC
  {cpsr}PSR=0x21000000
  !Flags=0x21000000:nzCvq
  !EPSR=0x21000000:none
  !IPSR=0x21000000:0  (Base)
  !PSP=0x10000248
  !CONTROL=0x0:Privileged/MSP (Now)
  [+IntMask]
  BasePri=0x00
  PriMask=disabled
  FaultMask=disabled
  []



On the LPC-Link2 I have installed the
CMSIS-DAP LPC-Link2 debugger image

The target MCU is a LPC1227 on two different target boards (Olimex P1227 and my own).


Regards,
Pirmin
0 Kudos
Reply
2 Replies

771 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Trimpim on Tue Oct 28 01:11:09 MST 2014


Debug mmessages
LPCXpresso RedlinkMulti Driver v7.4 (Sep 11 2014 00:18:29 - crt_emu_cm_redlink build 154)
============= SCRIPT: LPC12XXConnect.scp =============
LPC12XX Connect Script
DpID = 0BB11477
AP_ID = 0x04770021
============= END SCRIPT =============================
Emu(0): Conn&Reset. DpID: 0BB11477. CpuID: 410CC200. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Loaded LPC11_12_13_128K_8K.cfx: LPC11_12_13 (128K Flash, min 8K RAM) Sep 15 2014 17:39:41  On-chip Flash Memory
Connected: was_reset=true. was_stopped=true
v LPCXpresso Free License - Download limit is 256K
Writing 9456 bytes to address 0x00000000 in Flash
Erased/Wrote page  0-2 with 9456 bytes in 1843msec
Flash Write Done
Flash Program Summary: 9456 bytes in 1.84 seconds (5.01 KB/sec)
============= SCRIPT: LPC12XXReset.scp =============
LPC12XX Reset Script
AP_ID = 0x04770021
============= END SCRIPT ===========================

Stopped: Breakpoint #1



environment variables
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Pirmin\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=WS-PIRMIN
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Pirmin
LOCALAPPDATA=C:\Users\Pirmin\AppData\Local
LOGONSERVER=\\WS-PIRMIN
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShe
ll\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\PROGRA~1\CONDUS~1\DISKEE~1\;C:\Program Files (x86)\QuickTime
\QTSystem\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3e04
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Pirmin\AppData\Local\Temp
TMP=C:\Users\Pirmin\AppData\Local\Temp
USERDOMAIN=WS-Pirmin
USERNAME=Pirmin
USERPROFILE=C:\Users\Pirmin
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
windir=C:\Windows


I deleted all my launch configurations for one of the projects and started the debug session from the Quickstart Panel. This displayed a box where I could select the debug probe. The error messages were displayed again.

This morning when I first started debugging went well. But after about 4 short sessions the problem reapeared. Closing and restarting LPCXpresso did not resolve the problem.

Regards, Pirmin
0 Kudos
Reply

771 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Oct 27 01:41:55 MST 2014
To try to reproduce your problem, I have just tried debugging an IAR LPC1227 board, and do not see any such error.

Did you make *any* changes to you Launch Configuration, or to the connect/reset scripts?

Please post the output of your Debug Log
http://www.lpcware.com/content/faq/lpcxpresso/debug-log
It may also help if you post your environment variables (type "set" into a command prompt and select and the output)

Having done that, please try deleting your Launch Configuration and starting another Debug session from the Quickstart panel. (See http://www.lpcware.com/content/faq/lpcxpresso/launch-configuration-menu)
0 Kudos
Reply