Part Number: BOOSTXL-CC3135
Other Parts Discussed in Thread: CC3135, CC3220SF, , CC3220S
Hi,
I am using STM32L4 microcontroller and the BOOSTXL-CC3135 WIFI module interfaced through SPI,
I have successfully ported the CC3135 driver that I found in the simplelink_sdk_wifi_plugin_2_40_00_22, and I used the DPL source files that I found under the simplelink_cc32xx_sdk_3_30_01_02\kernel\freertos\dpl SDK to interface the CC3135 module with FreeRTOS,
Note that in my STM32 application, I am using the FreeRTOS V10.0.1, and IAR embedded workbench(8.22.1)
As a result, I can successfully start the CC3135 module in STA mode, Connect to an access point, and use the MQTT library to publish and subscribe to topics.
I have a little strange behavior in my application, and it appears in this case:
- The system Core Clock of the host is equal to 120 (and my SPI frequency is equal to 15MHz)
- and the Power Manage Policy is a Normal Policy (default and desired policy).
In fact, the behavior is random and can be summarized that the MQTT library does no longer works correctly, and that after a certain time I would get the following error message "[ERROR] - FATAL ERROR: No Cmd Ack detected [cmd opcode = 0x84b7] "
I have resolved the problem with different ways:
- When I use System Core clock equal to 80 MHz, with the same SPI frequency (15 MHz)
- By putting a delay of 1 ms after each assertion of CS pin (and before transmission or a reception from SPI lines )
- By changing the Power manage Policy from SL_WLAN_NORMAL_POLICY to SL_WLAN_ALWAYS_ON_POLICY.
I am almost certain that my issue is not SPI or GPIOs configuration, I already visualized signals and they are OK.
I think that the CC3135 module was in a certain mode that does not wake up and received frame that I send from SPI, that's why maybe a delay between assertion CS and transmitting frame let the CC3135 wakes up from a low power mode.
So, my questions are :
- Is there another host frequency requirement? apart from the frequency of SPI interface ? maybe it does support that my host is working with 120 MHz ? (note that I changed to 100 MHz and still not working)
- When Using the SL_WLAN_NORMAL_POLICY , is there a minimum required time to wake up from the sleep mode ?
- How can I configure the CC3135 module to works with a host that uses 120 MHz as a system frequency and 15MHz as SPI frequency, using a SL_WLAN_NORMAL_POLICY power manage policy and without putting delay ?
Best regards,
Ghada