We have a crash (unhandled exception 0x6ba) when calling WlanOpenHandle in our application after rebooting. It does not happen when we add a delay of about 3 seconds when starting the application. We are working with LM007 Wifi dongle (https://www.lm-technologies.com/product/wifi-usb-adapter-150mbps-lm007/).
Here is the debug output:
ÿToradex Bootloader 1.5b4 Built on Apr 17 2019
Splash screen is enabled.
Colibri iMX6S 256MB 1.1A Serial: 05193410
SPL enabled version.
Using 8MB of IPU memory and 16MB of GPU memory.
CPU is running at 984MHz.
Using eMMC boot partition (size: 4096 sectors).
Initializing L2 Cache.
Configuring pin 30
Press [SPACE] to enter Bootloader Menu
Initiating image launch in 2 seconds. <BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>1 seconds. <BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>0 seconds.
System ready!
Preparing for download...
Loading compressed image...
Reading image from sector 40962.
Extracting 45858080 bytes from compressed image of 25154476 bytes
.......................
Done.
Launching image at 10200000.
Toradex Windows CE 7.0 1.5b4
for iMX6 Built on Apr 17 2019
Colibri iMX6 Solo 256MB
Wait mode Disabled
SMP support disabled
RTC origin set to: 2006/01/01.
Registry - loading version 68 from 16386.
Registry loaded.
Loading Clock...
GPU enabled.
DVFS not enabled.
Done Loading Clock (14 ms)
Loading GPIO Multiplexer...
Failed(0) Loading GPIO Multiplexer (1 ms)
Loading SD Bus...
Done Loading SD Bus (0 ms)
Loading eMMC...
Loading I2C2...
Done Loading I2C2 (1 ms)
Done Loading eMMC (9 ms)
Waiting for flash disk \Flashdisk for 30 seconds
Loading I2C1...
Done Loading I2C1 (1 ms)
Folder mounted
Loading external SD interface...
SD clock always on on slot 2
SD slot 2 is using custom multiplexing.
Loading iMX6 PCIE driver...
Failed(0) Loading iMX6 PCIE driver (0 ms)
Loading PMIC...
Loading USB Host Controller...
Loading USB OTG...
Done Loading USB OTG (2 ms)
Loading SD card...
Loading 2D/3D Graphic Accelerator...
Loading Image Processing Unit...
Done Loading Image Processing Unit (1 ms)
Loading SPI2...
Multiplexing must be specified for non standard SPI port.
Failed(0) Loading SPI2 (5 ms)
Loading SPI1...
Done Loading SPI1 (0 ms)
Loading UARTC...
Done Loading UARTC (1 ms)
Done Loading 2D/3D Graphic Accelerator (84 ms)
Loading UARTB...
Done Loading UARTB (0 ms)
Loading UARTA...
Port is used for OS debug!
Failed(0) Loading UARTA (3 ms)
Loading Audio...
Loading Ethernet...
Loading Display...
Initializing display using splash screen settings.
GPU2D enabled.
Done Loading Display.
Ethernet: Disconnected
Done Loading Ethernet (250 ms)
Done Loading SD card (394 ms)
Turning display ON.
Done Loading PMIC (404 ms)
USB HOST: Forcing Full Speed
Loading DHCP v4...
Done Loading DHCP v4 (0 ms)
Done Loading USB Host Controller (480 ms)
Loading HDCP v6...
Done Loading HDCP v6 (0 ms)
Done Loading external SD interface (533 ms)
Load TouchButton: PosX 4,PosY 495,width 132,height 45,vkKey 58 <LF><CR>Load TouchButton: PosX 136,PosY 495,width 132,height 45,vkKey 59 <LF><CR>Load TouchButton: PosX 268,PosY 495,width 264,height 45,vkKey 60 <LF><CR>Load TouchButton: PosX 532,PosY 495,width 132,height 45,vkKey 62 <LF><CR>Load TouchButton: PosX 664,PosY 495,width 132,height 45,vkKey 63 <LF><CR>Loading Touch...
Maximum Allowed Error 5:
Done Loading Touch.
Done Loading Audio (1546 ms)
Reading RTC failed.
No external RTC found
RTCSync: Completed.
Loading USB OTG Host...
Done Loading USB OTG Host (65 ms)
Unloading USB OTG Host...
Done Unloading USB OTG Host (52 ms)
USB Device: Forcing Full Speed
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Display: 800x480@60Hz PCLK: 29000000
Loading PP...
Done Loading PP (1 ms)
Turning display ON.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Warning: you are requesting IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMTYPE, which has been deprecated. Use IOCTL_HAL_GET_DEVICE_INFO::SPI_GETPLATFORMNAME instead.
Exception 'Raised Exception' (0x6ba): Thread-Id=044b006e(pth=af840000), Proc-Id=05270062(pprc=af89ba44) 'FireFox.exe', VM-active=05270062(pprc=af89ba44) 'FireFox.exe'
PC=4002b484(coredll.dll+0x0001b484) RA=80232648(kernel.dll+0x0000e648) SP=0159eb48, BVA=00000000
Exception 'Data Abort' (0x4): Thread-Id=044b006e(pth=af840000), Proc-Id=05270062(pprc=af89ba44) 'FireFox.exe', VM-active=05270062(pprc=af89ba44) 'FireFox.exe'
PC=0097f3f4(FireFox.exe+0x0096f3f4) RA=4002fa5c(coredll.dll+0x0001fa5c) SP=0159e3f0, BVA=00000000
Is there a way to access the WLANAPI earlier?