Hi,
I'm trying to communicate with CC3120 via SPI by executing the following code:
I have a problem that I'm unable to solve with CC3120.
I'm trying to execute the following code:
i16_Stat = sl_Start(NULL, NULL, NULL);
int stat;
uint16 len = 100;
uint8 opt = SL_DEVICE_GENERAL_VERSION;
stat = sl_DeviceGet(SL_DEVICE_GENERAL, &opt, &len, (uint8*)pBuf);
The function sl_Start return 0 but sl_DeviceGet is stuck and never return a value.
This is the communication log between MCU (K64) and cc3120:
After Calling sl_Start(NULL, NULL, NULL) function
- IRQ line assertion
- WRITE (length = 4): 0x65 0x87 0x78 0x56
- READ (length = 8): 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
- READ (length = 4): 0xBC 0xDC 0xCD 0xAB
- READ (length = 4): 0x08 0x00 0x14 0x00
- READ (length = 8): 0x28 0x00 0x04 0x06 0x00 0x00 0x00 0x00
- READ (length = 12): 0x11 0x11 0x11 0x11 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
After calling: stat = sl_DeviceGet(SL_DEVICE_GENERAL, &opt, &len, (uint8*)pBuf);
- WRITE (length = 4): 0x21 0x43 0x34 0x12
- WRITE (length = 4): 0x66 0x84 0x08 0x00
- WRITE (length = 8): 0x00 0x00 0x01 0x0C 0x00 0x01 0x41 0x00
After this sequence the function sl_DeviceGet is stuck and doesn't return a value.
It seems that IRQ line doesn't assert.
Thanks!