Other Parts Discussed in Thread: CC3200, CC3100, CC3120, UNIFLASH
Hello everyone.
I have made a custom board with CC3120MOD , connected it to atsame70 cortex-m7 mcu via SPI interface.
Generally speaking I have:
VABT1,VBAT2, VBAT_RESET to 3.3V
pins1,2,16,27,28,30,32,38,43,0 to GND
nHIB via 10k to 3.3V
pin5-SPI_SCLK pin6-SPI_MOSI pin7-SPI_MISO pin8-SPI_NCS1 pin11-IRQ to GPIO pin35-RESET to GPIO
pin31 - via filter to SMA 73251-2120 connector to antenna ANT-SS2.4G
I ported all code from simplelink_msp432p4_sdk_1_50_00_12 and simplelink_sdk_wifi_plugin_1_50_00_38 with freertos accordingly to porting guide from SimpleLink Wi-Fi Network Processor Programmer's Guide. I mainly based my init code on network_terminal example.
After toggling nReset pin in sl_DeviceDisable() , sl_DeviceEnable() in sl_Start(), I get and IRQ in which it spawns a read in sl_Task(). So I read INITCOMPLETE message.
Everything goes right up to this moment.
Then I call sl_WlanPolicySet(SL_WLAN_POLICY_CONNECTION,SL_WLAN_CONNECTION_POLICY(1,0,0,0),NULL,0) function and get no response from CC3120MOD.
Function _SlDrvMsgRead() returns SL_DEVICE_EVENT_FATAL_SYNC_LOSS because there are no data on MISO pin (zeroes).
So the communication with the device looks like this:
1 got an IRQ
2 MCU sends data MOSI: 0x65,0x87,0x78,0x56
3.MISO: 0xBC,0xDC,0xCD,0xAB 0x08,0x00,0x14,0x08 0x28,0x00,0x04,0x06,0x00,0x00,0x00,0x00,0x11,0x11,0x11,0x11,0x00,0x00,0x00,0x31,0x00,0x00,0x00,0x00
So I get right D2H sync, HDR with opcode INITCOMPLETE and 20 more bytes in STATUS,DESCRIPTORS and PAYLOAD.
Do I get correct response here ? Does anyone know what STATUS=0x28,0x00,0x04,0x06 exactly mean ? May it be a calibration error ?
Please I would kindly appricate help from you !