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.

CC3351: Questions about Porting to STM32 series project

Part Number: CC3351


Tool/software:

Hello,

I am referring to the example code and the Driver Porting Guide to control the CC3351 using the STM32F7 series MCU. I have copied the source code from the '\cc33xx_mcu_package_R5\source' path into my project, and I am currently copying and modifying only the porting layer files from the example folder into my project.
Apart from the porting layer files, are there any other parts that I need to modify?The MCU has SDIO, UART and FreeRTOS avaliable.

I have downloaded the 'cc33xx_mcu_package_R5' to check the code, but I am having trouble understanding the configuration, so I have the following questions.

1. I have copied the source code from the path '\cc33xx_mcu_package_R5\source' to my project and am modifying only the Porting Layer Files from the example folder. Are there any other parts that need to be modified besides the Porting Layer Files?

2. In your example, it is implemented to control the WLAN_EN_PIN in the TurnOn_WL() and TurnOff_WL() functions, but it seems that the CC3351 does not have a pin related to WLAN_EN.
Which actual pin does WLAN_EN_PIN control? Is it for chip reset?

3. In the network_terminal.c file of the Example folder, the network_terminal_entry function needs to use WLAN, but why is the wlan_TurnOffWlan() function being called?

4. I want to control the CC3351 via SDIO. Is it possible to interface through SDIO without any additional configuration after booting? Or is there a need for separate CC3351 configuration for SDIO? If configuration is required, is there a document I should refer to?

5. There are instances where the function names in the guide do not match the function names in the code, and the structure of the code is difficult for me to understand.
Is there any additional sample code or documentation that I can refer to?

  • Hello James,

    1. I would focus on the files located inside the WiFi Adaptation folder. In addition to this, you will need to replace the init functions on main() and network_terminal_entry().

        /* init drivers and services */
        Drivers_open();
        Board_driversOpen();
        .
        .
        .
        .
        .
        .
        System_init();
        Board_init();

    2. The WLAN_EN definition refers to the EN pin on the board.

    3. This sets the device in its initial state. Once the application starts the first command you will send will be wlan_start. This will then turn on the device.

    4. Instead of implementing SPI you will ened to implement SDIO on the adaptation layer. in addition to this, you will need to set up your host to use SDIO. We do not have a working example at the moment, and no documentation other than the Linux driver.

    5. Can you provide specific examples. I would like to address all of the feedback you have and improve our documentation in the process.