This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3120: Communication issue

Part Number: CC3120


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

 

  1. IRQ line assertion
  2. WRITE (length = 4): 0x65 0x87 0x78 0x56
  3. READ (length = 8):   0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  4. READ (length = 4):   0xBC 0xDC 0xCD 0xAB
  5. READ (length = 4):   0x08 0x00 0x14 0x00
  6. READ (length = 8):   0x28 0x00 0x04 0x06 0x00 0x00 0x00 0x00
  7. 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);

 

  1. WRITE (length = 4): 0x21 0x43 0x34 0x12
  2. WRITE (length = 4): 0x66 0x84 0x08 0x00
  3. 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!