no GPC问题,无法调试。
我按照GDK7-Startup-new这个PDF步骤。
1:windbg调试器(我安装了19041 sdk,带了windbg)。
2:fastdci文档。
2.1:安装驱动。
2.2:安装NDB,登录。
2.3:复制、解压两个压缩包。
2.4:调试主机与被调试主机成功连接,USB设备正常识别。
2.5:修改保存ndb.cfg文件。
开启调试:选择了DCI OPEN,最终显示以下信息。
欢迎来到 Nano Code...1.3.7
00:08:43#ND:Config file inited as c:\nanocode\data\ndb.cfg
00:08:53#ND:NDI got hello from 1.3.7
00:08:53#ND:Found IAT for api-ms-win-core-libraryloader-l1-1-0.dll
00:08:53#ND:GetModuleFileNameW
00:08:53#ND:LockResource
00:08:53#ND:DisableThreadLibraryCalls
00:08:53#ND:LoadLibraryExA
00:08:53#ND:GetProcAddress
00:08:53#ND:XFUNC: GetProcAddress
00:08:53#ND:GetModuleHandleW
00:08:53#ND:GetModuleFileNameA
00:08:53#ND:GetModuleHandleExW
00:08:53#ND:LoadResource
00:08:53#ND:SizeofResource
00:08:53#ND:LoadLibraryExW
00:08:53#ND:GetModuleHandleExA
00:08:53#ND:FreeLibrary
00:08:53#ND:Found IAT for api-ms-win-core-libraryloader-l1-1-0.dll
00:08:53#ND:Found IAT for api-ms-win-core-processenvironment-l1-1-0.dll
00:08:53#ND:\?\C:\NanoCode\data\cmdmap.txt read to 000002020F659F80, 446 bytes
00:08:53#ND:Command map \?\C:\NanoCode\data\cmdmap.txt is laoded with 0
00:08:53#NB:Starting KD session type=usb3,proto=dcid,ipc=open,opt=rsn
00:08:53#JTAG:Failed to find entry for IPCSelectConfigurationByName
00:08:53#JTAG:Failed to find entry for IPCGetAvailableConfigurationCount
00:08:53#JTAG:Failed to find entry for IPCGetAvailableConfigurations
00:08:59#JTAG:RunControl Service entry 00007FFB12545CC0
00:08:59#JTAG:Operation Receipt Service entry 00007FFB12545B60
00:08:59#NB:Session thread (12968) starts...
00:08:59#NB:Session thread gets running...
00:08:59#EVCB:ChangeEngineState: CESENGINEOPTION[0x20], 0x1000a0
00:08:59#EVCB:ChangeEngineState: CESEVENTFILTERS[0x100], 0xffffffff
00:09:00#EXDI:Creating eXDI3 server
00:09:00#ND:CoMarchsalInterface is working for 2e501506
00:09:00#EVCB:ChangeEngineState: CESSYSTEMS[0x800], 0x0
00:09:00#EVCB:ChangeEngineState: CESEXECUTION_STATUS[0x10], 0x1
00:09:00#EXDI:StartNotifyingRunChg3
我点击中断,显示00:10:12#JTAG:Unable to perform operation because there are no GPC threads in this domain。如果被调试主机不开机,显示的信息都是一样的,我是哪里没设置对吗。
屏幕输出如下:
Starting new session...
Nano Debugger (NDB) 1.6.728 (11696:3232)
Starting KD session type=usb3,proto=dcid,ipc=open,opt=rsn
Microsoft (R) Windows Debugger Version 10.0.22000.194 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
NDB session started in 11696:12968(0x32a8)
USB设备:

ndb.cfg配置文件和EXDI和IPC路径:
OPENIPC里也是有信息的。被调试机器开关机,也是能接受到事件。

关机事件:
00:21:56#EXDI:StartNotifyingRunChg3
00:27:23#JTGE:JtagReconfigurationEvent:type=2 dbgportid=1
00:27:23#JTGE:JtagMessageEvent:type=1 dbgportid=Failed to establish target connection. The OS was unable to communicate with the debug hardware. The target may need to be power cycled. Error: (Error: 0x0016000e)
00:28:06#JTGE:JtagMessageEvent:type=2 dbgportid=DCI: Device Gone (Target Power Lost or Cable Unplugged)
开机事件:
00:28:06#JTGE:JtagReconfigurationEvent:type=1 dbgportid=0
00:28:06#JTGE:JtagReconfigurationEvent:type=2 dbgportid=1
00:28:21#JTGE:JtagMessageEvent:type=2 dbgportid=DCI: A DCI device has been detected, attempting to establish connection
00:28:23#JTGE:JtagReconfigurationEvent:type=1 dbgportid=0
00:28:23#JTGE:JtagReconfigurationEvent:type=2 dbgportid=1
00:28:23#JTGE:JtagMessageEvent:type=1 dbgportid=Failed to establish target connection. The OS was unable to communicate with the debug hardware. The target may need to be power cycled. Error: (Error: 0x0016000e)
00:28:23#JTGE:JtagMessageEvent:type=2 dbgportid=DCI: Device Gone (Target Power Lost or Cable Unplugged)
00:28:23#JTGE:JtagReconfigurationEvent:type=1 dbgportid=0
00:28:23#JTGE:JtagReconfigurationEvent:type=2 dbgportid=1
00:28:23#JTGE:JtagMessageEvent:type=2 dbgportid=DCI: A DCI device has been detected, attempting to establish connection
00:28:25#JTGE:JtagReconfigurationEvent:type=1 dbgportid=0
00:28:25#JTGE:JtagReconfigurationEvent:type=2 dbgportid=1
00:28:25#JTGE:JtagMessageEvent:type=1 dbgportid=Failed to establish target connection. The OS was unable to communicate with the debug hardware. The target may need to be power cycled. Error: (Error: 0x0016000e)
00:28:29#JTGE:JtagMessageEvent:type=2 dbgportid=DCI: Device Gone (Target Power Lost or Cable Unplugged)
00:28:29#JTGE:JtagReconfigurationEvent:type=1 dbgportid=0
00:28:29#JTGE:JtagReconfigurationEvent:type=2 dbgportid=1
00:28:29#JTGE:JtagMessageEvent:type=2 dbgportid=DCI: A DCI device has been detected, attempting to establish connection
00:28:31#JTGE:JtagReconfigurationEvent:type=1 dbgportid=0