EXCEPTION_ACCESS_VIOLATION

Topics: Developer Forum, User Forum
Nov 16, 2009 at 12:42 PM

Hello,

I want to use atheros AR-6002 on PXA270 and windows CE 5.0. After inserting card, driver is loaded but i get EXCEPTION_ACCESS_VIOLATION from sdbusdriver. If SDIO interrupt is manualy disabled in host controller, exception does not occure.

 

Debug messages:

 

14:38:10.892> 
14:38:14.986> 0x8bd82400: SD/MMC Card0 inserted
14:38:15.361> [SLT0] SetClk 100000
14:38:15.361> SDHSlotOptionHandler - called - SetSlotInterface : setting for 1 bit mode 
14:38:15.361> 0x8bd8d9f4: SDSetCardInterfaceForSlot - HC ClockRate differs desired setting: desired: 100000 Hz, Actual : 312500 Hz 
14:38:15.423> SDHSlotOptionHandler - called - SetSlotPower : 0x00100000  
14:38:15.986> [SLT0] SetClk 25000000
14:38:16.048> SDHSlotOptionHandler - called - SetSlotInterface : setting for 4 bit mode 
14:38:16.048> 0x8bd8d9f4: SDSetCardInterfaceForSlot - HC ClockRate differs desired setting: desired: 25000000 Hz, Actual : 10000000 Hz 
14:38:16.048> 0x8bd8d9f4: HandleAddDevice: LoadDevice type = 0, slot 00x8bd8d9f4: HandleAddDevice: LoadDevice type = 3, slot 00x8bd8d9f4: DEVICE!RegReadActivationValues RegQueryValueEx(\Drivers\SDCARD\ClientDrivers\Custom\MANF-0271-CARDID-0201-FUNC-1\BusPrefix) returned 2
14:38:16.048> 
14:38:16.048> 0x8bd8d9f4: SDCard: +SDInitializeCardLib
14:38:16.048> 0x8bd8d9f4: SDCard: -SDInitializeCardLib
14:38:16.111> 0x8bd8d9f4: SDGetDeviceHandle: ActivePath: Drivers\Active\38 
14:38:16.111> 0x8bd8d9f4: SDCard: +AllocateMemoryWithTag
14:38:16.111> 0x8bd8d9f4: SDCard: -AllocateMemoryWithTag
14:38:16.111> 0x8bd8d9f4: SDCard: +SDFreeMemory
14:38:16.111> 0x8bd8d9f4: SDCard: -SDFreeMemory
14:38:16.111> 0x8bd8d9f4: SDGetClientFunctions: +Init
14:38:16.111> 0x8bd8d9f4: SDGetClientFunctions: -Init
14:38:16.111> 0x8bde2400: ==>NdisInitializeWrapper
14:38:16.111> 0x8bde2400: <==NdisInitializeWrapper
14:38:16.111> 0x8bde2400: ==>NdisMRegisterMiniport: NdisWrapperHandle 00772F00
14:38:16.111> 0x8bde2400: ==>ndisRegisterMiniportDriver: NdisWrapperHandle 00772F00
14:38:16.111> 0x8bde2400: <==ndisRegisterMiniportDriver: MiniBlock 00773180
14:38:16.111> 0x8bde2400: NdisMRegisterMiniport: MiniBlock 00773180
14:38:16.111> 0x8bde2400: <==NdisMRegisterMiniport: MiniBlock 00773180, Status 0
14:38:16.111> 0x8bde2400: 
14:38:16.173> 0x8bde2400: ndisMInitializeAdapter: Miniport 00773398, 0x8bde2400: ==>ndisQueueMiniportOnDriver: Miniport 00773398, MiniBlock 00773180
14:38:16.173> 0x8bde2400: <==ndisQueueMiniportOnDriver: Miniport 00773398, MiniBlock 00773180, rc 1
14:38:16.173> 0x8bde2400: ==>NdisMSetAttributesEx: Miniport 00773398
14:38:16.173> 0x8bfd0400: [NOTIFY] HandleSystemEvent 7 /ADD DRG1:
14:38:16.173> 
14:38:17.173> [SLT0] SetClk 24000000
14:38:17.173> SDHSlotOptionHandler - called - SetSlotInterface : setting for 1 bit mode 
14:38:17.173> SDHSlotOptionHandler: Read Block Length: 128 , Read Blocks: 8
14:38:17.173> SDHSlotOptionHandler: Write Block Length: 128 , Write Blocks: 8
14:38:18.236> 0x8bde2400: FIRMWARE MAJOR VERSION ==> f
14:38:18.236> 0x8bde2400: FIRMWARE MINOR VERSION ==> f
14:38:18.236> SDHSlotOptionHandler - called - EnableSDIOInterrupts : on slot 0			pController->fSDIOEnabled[SlotNumber]:	0		mmc_i_mask register:	1FFFh
14:38:18.236> SDHSlotOptionHandler - called - EnableSDIOInterrupts : on slot 0			pController->fSDIOEnabled[SlotNumber]:	1		mmc_i_mask register:	17FFh
14:38:18.361> 0x8bd85a64: Data Abort: Thread=8bd85a64 Proc=86fd7430 'device.exe'
14:38:18.361> 
14:38:18.361> 0x8bd85a64: AKY=00000009 PC=00c3ca68(ar6k_ndis_sdio.dll+0x0002ca68) RA=02ff3cdc(sdbus.dll+0x00023cdc) BVA=0800f938 FSR=00000007
14:38:18.361> 
14:38:18.361> 0x8bd85a64: SDBusDriver: Exception caught ExceptionCode:0xC0000005, flags:0x00000000, Code Address 0x00C3CA68 
14:38:18.361> 0x8bd85a64:         Exception: EXCEPTION_ACCESS_VIOLATION 
14:38:18.423> 0x8bd85a64:         Read Access Exceptioned at VAddress : 0x0800F938 
14:38:18.423> 0x8bd85a64: --- SDBusDriver: Exception caught in CompleteRequest when calling callback in device Atheros AR6K SDIO Wifi Card 
14:38:18.423> 0x8bd85a64: Data Abort: Thread=8bd85a64 Proc=86fd7430 'device.exe'
14:38:18.423> 
14:38:18.423> 0x8bd85a64: AKY=00000009 PC=00c3ca68(ar6k_ndis_sdio.dll+0x0002ca68) RA=02ff3cdc(sdbus.dll+0x00023cdc) BVA=0201f938 FSR=00000007
14:38:18.423> 
14:38:18.423> 0x8bd85a64: SDBusDriver: Exception caught ExceptionCode:0xC0000005, flags:0x00000000, Code Address 0x00C3CA68 
14:38:18.423> 0x8bd85a64:         Exception: EXCEPTION_ACCESS_VIOLATION 
14:38:18.423> 0x8bd85a64:         Read Access Exceptioned at VAddress : 0x0201F938 
14:38:18.423> 0x8bd85a64: --- SDBusDriver: Exception caught in CompleteRequest when calling callback in device Atheros AR6K SDIO Wifi Card 
14:38:18.501> Debug Assert Caught, File c:\wince500\platform\h42\src\drivers\ar6k\sdio\host\htc\ar6000\src\htc_events.c, Line: 363, Test:status == A_OK 
14:38:18.501> Debug Assert Caught, File c:\wince500\platform\h42\src\drivers\ar6k\sdio\host\hif\sdio\wince\src\hif.c, Line: 295, Test:status == A_OK 
14:38:18.501> 0x8bd85a64: Data Abort: Thread=8bd85a64 Proc=86fd7430 'device.exe'
14:38:18.501> 
14:38:18.501> 0x8bd85a64: AKY=00000009 PC=00c3ca68(ar6k_ndis_sdio.dll+0x0002ca68) RA=02ff3cdc(sdbus.dll+0x00023cdc) BVA=0403f938 FSR=000000f5
14:38:18.501> 
14:38:18.501> 0x8bd85a64: SDBusDriver: Exception caught ExceptionCode:0xC0000005, flags:0x00000000, Code Address 0x00C3CA68 
14:38:18.501> 0x8bd85a64:         Exception: EXCEPTION_ACCESS_VIOLATION 
14:38:18.501> 0x8bd85a64:         Read Access Exceptioned at VAddress : 0x0403F938 
14:38:18.501> 0x8bd85a64: --- SDBusDriver: Exception caught in CompleteRequest when calling callback in device Atheros AR6K SDIO Wifi Card 
14:38:18.579> 0x8bd85a64: Data Abort: Thread=8bd85a64 Proc=86fd7430 'device.exe'
14:38:18.579> 
14:38:18.579> 0x8bd85a64: AKY=00000009 PC=00c3ca68(ar6k_ndis_sdio.dll+0x0002ca68) RA=02ff3cdc(sdbus.dll+0x00023cdc) BVA=0b04f938 FSR=000000f5
14:38:18.579> 
14:38:18.579> 0x8bd85a64: SDBusDriver: Exception caught ExceptionCode:0xC0000005, flags:0x00000000, Code Address 0x00C3CA68 
14:38:18.579> 0x8bd85a64:         Exception: EXCEPTION_ACCESS_VIOLATION 
14:38:18.579> 0x8bd85a64:         Read Access Exceptioned at VAddress : 0x0B04F938 
14:38:18.579> 0x8bd85a64: --- SDBusDriver: Exception caught in CompleteRequest when calling callback in device Atheros AR6K SDIO Wifi Card 
14:38:20.236> Failed to negotiate the block sizes
14:38:20.236> SDHSlotOptionHandler - called - DisableSDIOInterrupts : on slot 0  
14:38:22.236> Unable to cold reset the target
14:38:22.236> Debug Assert Caught, File c:\wince500\platform\h42\src\drivers\ar6k\sdio\host\htc\ar6000\src\htc.c, Line: 431, Test:IS_ELEMENT_FREE(element) 
14:38:22.298> Debug Assert Caught, File c:\wince500\platform\h42\src\drivers\ar6k\sdio\host\htc\ar6000\src\htc.c, Line: 431, Test:IS_ELEMENT_FREE(element) 
14:38:22.298> Debug Assert Caught, File c:\wince500\platform\h42\src\drivers\ar6k\sdio\host\htc\ar6000\src\htc.c, Line: 431, Test:IS_ELEMENT_FREE(element) 
14:38:22.298> AR6K: HTCStart failed, error=4294967295
14:38:22.298> AR6K: ERROR - No TGT_READY event after 20000 ms, failing initialization
14:38:22.298> 0x8bde2400: Unknown: DEBUGCHK failed in file c:\wince500\public\common\oak\drivers\sdcard\sdbus\sddevice.cpp at line 2208 
14:38:22.298> 
14:38:22.298> 0x8bde2400: DEBUG_BREAK @02feeb48 MD=10 Ignored.
14:38:22.298> 
14:38:22.298> 0x8bde2400: SDReadWriteRegistersDirect__X: Failed status 0xC0000003 
14:38:22.376> Debug Assert Caught, File c:\wince500\platform\h42\src\drivers\ar6k\sdio\host\hif\sdio\wince\src\hif.c, Line: 245, Test:SD_API_SUCCESS(sdStatus) 
14:38:22.376> 0x8bde2400: ==>NdisMDeregisterAdapterShutdownHandler: Miniport 00773398
14:38:22.376> 0x8bde2400: <==NdisMDeregisterAdapterShutdownHandler: Miniport 00773398
14:38:22.376> 0x8bde2400: ***NDIS*** (b, 2078) 0x8bde2400:     INIT FAILURE: Dequeueing the miniport from the driver block.
14:38:22.376> 0x8bde2400: ==>ndisDeQueueMiniportOnDriver, Miniport 00773398, MiniBlock 00773180
14:38:22.376> 0x8bde2400: <==ndisDeQueueMiniportOnDriver: Miniport 00773398, MiniBlock 00773180
14:38:22.376> 0x8bde2400: ***NDIS*** (b, 2105) 0x8bde2400:     INIT FAILURE: Dereferencing the miniport block.
14:38:22.376> 0x8bde2400:     ndisDereferenceMiniport:Miniport 00773398, Ref = 0
14:38:22.376> 0x8bde2400: ==>ndisMUnload: DriverObject 00772E60
14:38:22.376> 0x8bde2400:   ndisMUnload: MiniBlock 00773180
14:38:22.376> 0x8bde2400: <==ndisMUnload: DriverObject 00772E60, MiniBlock 00773180
14:38:22.376> NdisRegisterAdapter Failed : 0xc0000001

Coordinator
Nov 16, 2009 at 6:14 PM

What AR6002 driver version are you using?

What SDBUS version are you using?

Regards

Paul

Nov 18, 2009 at 1:22 PM

I have built the cewifidriverar6000-21374. In previous post are debug messages when using SDBus2 driver.

Leter I have found that this driver needs legacy SDBus driver (set IMGSDBUS=0) then I run sysgen and build release image. Now it looks like everything is working.

 

thanks Marek

Coordinator
Nov 18, 2009 at 7:17 PM

The driver available on this site only supports the AR6001. It will not work with the AR6002. You will need to get the updated driver from your hardware vendor.

Regards

Paul