很奇怪,USB的驱动为什么会出现这样的问题:
The USB driver (usbfn.dll) exports the “Data abort” in the step of system initializing. After tracing I find the problem appeared in the AllocEndpoints() function in the ufnbus.cpp (MDD). The “Data abort” comes from at the line of
“CStaticPipe *pStaticPipe = new CStaticPipe(dwPipe, &pContext->PddInfo, pContext->pFreeTransferList, pContext);”, which may be caused of cannot allocate the memory for the CStaticPipe.
它怎么就分配不了空间呢????
解决中.....
---------------------------------------------------------------------------------------------------------------------------------
问题已经解决:
在CE6中,是否要求SOURCE文件中的DLLENTRY=DLLENTRY?和代码中的入口函数相对应,反正我改了,就没有这个DATA ABORT了.
本文探讨了USB驱动usbfn.dll在初始化过程中出现的DataAbort问题,并定位到ufnbus.cpp中的AllocEndpoints函数。该问题源于无法为CStaticPipe分配内存。通过调整CE6中的SOURCE文件DLLENTRY设置,成功解决了此问题。
1万+

被折叠的 条评论
为什么被折叠?



