|
原先我没有加载SDBUS驱动,提示错误是上面那样。
现在我先加载SDBUS,再加载SDHC时,系统就死掉了。
串口信息显示:
+OALIoCtlHalRequestSysIntr
+OALIntrRequestSysIntr(1, 0x00554738, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 31)
+OALIoCtlHalRequestSysIntr(rc = 1)
+OALIoCtlHalRequestSysIntr
+OALIntrRequestSysIntr(1, 0x00554754, 0x00000000)
-OALIntrRequestSysIntr(sysIntr = 32)
+OALIoCtlHalRequestSysIntr(rc = 1)
不知道为什么这里会连续调用两次
注册表信息为:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SDHC_Sc2410]
"Order"=dword:21
"Dll"="sdhc_sc2410.dll"
"Prefix"="SDH"
"DMAChannel"=dword:0 ; DMA channel to use. Set to 0xffffffff to disable DMA
"DMAIrq"=dword:11
"DMA_IST_Priority"=dword:96
"SDIOIrq"=dword:15
"SDIO_IST_Priority"=dword:97
"PollingTimeout"=dword:100 ; 100 ms
"CardDetect_Thread_Priority"=dword:98
"CardDetectGPIO"="B" ; card detect on GPB0
"CardDetectMask"=dword:400
"CardDetectFlag"=dword:0
"CardDetectControlMask"=dword:fffcffff
"CardDetectControlFlag"=dword:0
"CardDetectPullupMask"=dword:ffffffef
"CardDetectPullupFlag"=dword:10
"CardReadWriteGPIO"="H" ; card R/W on GPH8
"CardReadWriteMask"=dword:100
"CardReadWriteFlag"=dword:100
"CardReadWriteControlMask"=dword:ffcfffff
"CardReadWriteControlFlag"=dword:0
"CardReadWritePullupMask"=dword:ffffffbf
"CardReadWritePullupFlag"=dword:40
"HandleBusyFinishOnCommand38"=dword:1
"DmaTransferTimeoutFactor"=dword:8
"DmaTransferTimeoutConstant"=dword:3000
搞了很长时间都没结果,好郁闷啊!!! |
|