我是新手。我正在使用 WinCE 7 VS 2008。我的操作系统是 Windows 7。我想使用注册表启用调试区域。以前在Windows XP - WinCE 6,我都用过。但是,除了在代码中编程之外,我不知道如何为特定模块启用调试区域。我尝试将其添加为注册表实体,
[HKEY_LOCAL_MACHINE\DebugZones]
"OMAP GPIO"=dword:FFFF
OMAP GPIO
模块名称在哪里。
dpCurSettings 是,
DBGPARAM dpCurSettings = {
L"OMAP GPIO", {
L"Errors", L"Warnings", L"Function", L"Info",
L"IST", L"Undefined", L"Undefined", L"Undefined",
L"Undefined", L"Undefined", L"Undefined", L"Undefined",
L"Undefined", L"Undefined", L"Undefined", L"Undefined"
},
0x0003
};
我在我的代码中使用了这一行。
DEBUGMSG(ZONE_FUNCTION, (L"DEBUGZONE :+Am3xxGpioInterruptInitialize\r\n"));
但是,这是行不通的。我检查了Pegasus
开发工作站注册表中的条目。但是,我也找不到。请指导我如何做到这一点。
更新
实际上,调试消息和调试区域在一个静态库am3xx_device_gpio.lib
中,它包含SOURCELIBS
在一个 dll 中am3xx_gpio.dll
这是因为,am3xx_device_gpio.lib
是常见的 TI 代码。上述注册表仅在am3xx_gpio.dll
我认为由于这个原因,它没有被打印出来。现在还能做什么?