|
以太网初始化的发生reset错误,不知道什么原因,是从cs8900的lib文件中调用的函数
Initiating image download in 3 seconds.
Starting auto-download ...
memorybase:FLAG^_^CS8900: MAC Address: ff:31:4:0:ff:31
ERROR: Reset: Reset failed (SIBUSY).
ERROR: InitEthDevice: Failed to initialize Ethernet controller.
ERROR: OEMPlatformInit: Failed to initialize Ethernet controller.
c代码
- pfnEDbgGetFrame = CS8900DBG_GetFrame;
- pfnEDbgSendFrame = CS8900DBG_SendFrame;
- pBaseIOAddress = (PBYTE)OALPAtoVA(pBSPArgs->kitl.devLoc.LogicalLoc, FALSE);
- MemoryBase = (UINT32)OALPAtoVA(BSP_BASE_REG_PA_CS8900A_MEMBASE, FALSE);
-
- // Initialize the Ethernet controller.
- //
- [color=#FF0000]if (!pfnEDbgInit((PBYTE)pBaseIOAddress, MemoryBase, pBSPArgs->kitl.mac))[/color] {
- OALMSG(OAL_ERROR, (TEXT("ERROR: InitEthDevice: Failed to initialize Ethernet controller.\r\n")));
- goto CleanUp;
- }
复制代码
函数指针的函数发生报错,但是函数的源代码不知道,所以请问大家是什么原因
|
|