wince 启动停止了。
我在编写流驱动的时候,系统启动突然停止了。
串口输出信息:
[dm9: Tries to map io space with 18000000
[dm9: The mapped address is D0B80000
[dm9: Chip signature is 90000A46
[dm9: Chip signature is 90000A46
<DM9:--MiniportInitialize>
STRINGS:***@@****DLL_PROCESS_ATTACH******
MYSTRINGGS:**@@*******InitKey_Init***********
*@@**********KeyInt_Setting***********
流驱动部分代码。
DWORD KEY_Init(DWORD dwContext)
{ // if you drive a idiographic device,add oter code ep: int,hardwareinit and so on
DWORD IDINTThread;
RETAILMSG(1,(TEXT("MYSTRINGGS:**@@*******InitKey_Init***********\n")));
//clear the ram which is used for this dll
InitializeAddresses();
INTInit();
RETAILMSG(1,(TEXT("@before CreateThread \r\n")));
Key_Key_Thread = CreateThread(0,0,(LPTHREAD_START_ROUTINE)Key_KeyThread_Fun,0,0,&IDINTThread);
if(!Key_Key_Thread)
{
RETAILMSG(1,(TEXT("@CreateThread faile \r\n")));
return FALSE;
}
else
{
RETAILMSG(1,(TEXT("@CreateThread OK \r\n")));
}
Key_KeyIntr_Event = CreateEvent(NULL,false,false,NULL);
if(!Key_KeyIntr_Event)
{
RETAILMSG(1,(TEXT("@CreateEvent faile \r\n")));
return FALSE;
}
else
{
RETAILMSG(1,(TEXT("@CreateEvent OK \r\n")));
}
。。。。。。。。
。。。。。。。
}
BOOL INTInit()
{
RETAILMSG(1,(TEXT("*@@**********KeyInt_Setting***********\r\n")));
v_pIOPregs->GPFCON &= ~(0x3 << 2); /* Set EINT1(GPF1) as EINT1 */
v_pIOPregs->GPFCON |= (0x2 << 2);
v_pIOPregs->EXTINT1 &= ~(0x7 << 3);
v_pIOPregs->EXTINT1 |= (0x2 << 3); /* Configure EINT1 as Falling Edge Mode */
return TRUE;
}
初学,不知道哪里出问题了。帮忙分析下。
串口输出信息:
[dm9: Tries to map io space with 18000000
[dm9: The mapped address is D0B80000
[dm9: Chip signature is 90000A46
[dm9: Chip signature is 90000A46
<DM9:--MiniportInitialize>
STRINGS:***@@****DLL_PROCESS_ATTACH******
MYSTRINGGS:**@@*******InitKey_Init***********
*@@**********KeyInt_Setting***********
流驱动部分代码。
DWORD KEY_Init(DWORD dwContext)
{ // if you drive a idiographic device,add oter code ep: int,hardwareinit and so on
DWORD IDINTThread;
RETAILMSG(1,(TEXT("MYSTRINGGS:**@@*******InitKey_Init***********\n")));
//clear the ram which is used for this dll
InitializeAddresses();
INTInit();
RETAILMSG(1,(TEXT("@before CreateThread \r\n")));
Key_Key_Thread = CreateThread(0,0,(LPTHREAD_START_ROUTINE)Key_KeyThread_Fun,0,0,&IDINTThread);
if(!Key_Key_Thread)
{
RETAILMSG(1,(TEXT("@CreateThread faile \r\n")));
return FALSE;
}
else
{
RETAILMSG(1,(TEXT("@CreateThread OK \r\n")));
}
Key_KeyIntr_Event = CreateEvent(NULL,false,false,NULL);
if(!Key_KeyIntr_Event)
{
RETAILMSG(1,(TEXT("@CreateEvent faile \r\n")));
return FALSE;
}
else
{
RETAILMSG(1,(TEXT("@CreateEvent OK \r\n")));
}
。。。。。。。。
。。。。。。。
}
BOOL INTInit()
{
RETAILMSG(1,(TEXT("*@@**********KeyInt_Setting***********\r\n")));
v_pIOPregs->GPFCON &= ~(0x3 << 2); /* Set EINT1(GPF1) as EINT1 */
v_pIOPregs->GPFCON |= (0x2 << 2);
v_pIOPregs->EXTINT1 &= ~(0x7 << 3);
v_pIOPregs->EXTINT1 |= (0x2 << 3); /* Configure EINT1 as Falling Edge Mode */
return TRUE;
}
初学,不知道哪里出问题了。帮忙分析下。
...全文
相关推荐
使用U盘制作WinCE6.0的启动盘研究.doc
**跳转地址错误**:如果你看到“jumping to 0x00224CB0”或“0x00228F08”后停止,这可能意味着加载地址错误。
解决wince启动Nandflash扫描慢
**停止启动时加载**:在启动过程中不自动加载NAND Flash驱动程序,而是通过手动调用`ActivateDevice`函数来加载。 2.
WINCE串口助手
至于压缩包中的"wnice串口助手.exe"文件,它是程序的可执行文件,用户只需将这个文件部署到WINCE设备上,即可启动并使用这款串口调试工具,无需安装额外的库或组件,方便快捷。
netlogctl WINCE 抓包
由于WINCE系统可能需要特定权限运行此类工具,你可能需要以管理员身份运行或者修改文件的执行权限。2. **启动抓包**:打开命令行界面,输入`netlogctl start`命令来启动抓包。
wince 控制蜂鸣器发声(VB.NET)
这个模块通常包含若干公共方法,如`StartBeep`(启动蜂鸣)、`StopBeep`(停止蜂鸣)等。这些方法会与WinCE的GPIO驱动进行交互。2.


