I was able to successfully port the driver into my RTOs. I was able to setup the module into an AP with a DHCP server. However, after trying to attempt to re-initialize the device again, the device will hang right at this line:
while ( ! N2H_SYNC_PATTERN_MATCH(pBuf, g_pCB->TxSeqNum) ) (driver.c #1236)
I even tried to get it to run with the EMUBOOST board and the sample VS project but it will do the same thing. I tried to reformat it with the uniflash application and re-load the service pack hoping that it will set it back to mnfg default. The device is stuck with the previous settings and it will not allow me to change settings or control it at all.
SPI traffic logs:
Index m:s.ms.us Dur Len Err Record Data
0 0:00.000.000 Capture started [10/24/14 18:58:15]
1 0:27.015.183 195.800 us 4 B Transaction 8700 6500 7800 5600
4 0:27.016.392 255.300 us 4 B Transaction 00AB 00CD 00DC 00BC
7 0:27.017.663 146.800 us 4 B Transaction 0000 0008 0000 0008
10 0:27.018.825 146.800 us 4 B Transaction 0000 0000 0000 0000
13 0:27.020.005 146.700 us 4 B Transaction 0033 0033 0033 0033
16 0:27.021.415 304.400 us 4 B Transaction 8700 6500 7800 5600
19 0:27.022.732 146.800 us 4 B Transaction 00AB 00CD 00DC 00BD
22 0:27.023.894 146.800 us 4 B Transaction 0000 0078 0000 0008
25 0:27.025.057 146.800 us 4 B Transaction 0017 0000 0000 0000
28 0:27.026.270 146.800 us 4 B Transaction 0033 0033 000B 00AD
31 1:38.772.465 Capture stopped [10/24/14 18:59:54]