CE6 USB DRIVER 碰到问题了!!!!!

本文探讨了USB驱动usbfn.dll在初始化过程中出现的DataAbort问题,并定位到ufnbus.cpp中的AllocEndpoints函数。该问题源于无法为CStaticPipe分配内存。通过调整CE6中的SOURCE文件DLLENTRY设置,成功解决了此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

很奇怪,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了.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值