Skip to main content
Visitor II
February 14, 2024
Solved

Import a thread project into a project to have only the necessary files.

  • February 14, 2024
  • 1 reply
  • 894 views

Hello,

I've recently been using Thread application examples like "Thread_FTD_Coap_Multicast", but when I tried adding other features such as ADC, I encountered errors due to redundancy caused by too many files.

I'm wondering how to start a new clean project with STM32CubeMX and then incorporate the Thread protocol afterwards.

Have you ever done this? If so, do you have any suggestions?

Thank you.

    This topic has been closed for replies.
    Best answer by Ouadi

    Hello @Cadixal,

    To create a new project dedicated for a Thread application you can use either STM32CubeMX tool or STM32CubeIDE both allowing an advanced configuration with integrated GUI feature. To set up a Thread project you have to follow the steps below :

    1. Activate HSEM
    2. Activate IPCC
    3. Activate RCC
    4. Activate RF ( Under Connectivity)
    5. Activate USART1 or LPUART
    6. Under Middleware ->STM32_WPAN-> Check THREAD and set up the configuration as follow :
      Ouadi_1-1707936294556.png
    7. Set up the Clock configuration
    8. Set up project configuration under Project Manager by choosing the toolchain IDE -> STM32CubeIDE
    9. Generate the project and verify the project setting to be sure that all source path are included as follow :Ouadi_3-1707936599295.png

       

    You have now a clean project that includes Thread APIs ready to be used for your own application.

    Best regards,

    Ouadi

    1 reply

    OuadiAnswer
    Technical Moderator
    February 14, 2024

    Hello @Cadixal,

    To create a new project dedicated for a Thread application you can use either STM32CubeMX tool or STM32CubeIDE both allowing an advanced configuration with integrated GUI feature. To set up a Thread project you have to follow the steps below :

    1. Activate HSEM
    2. Activate IPCC
    3. Activate RCC
    4. Activate RF ( Under Connectivity)
    5. Activate USART1 or LPUART
    6. Under Middleware ->STM32_WPAN-> Check THREAD and set up the configuration as follow :
      Ouadi_1-1707936294556.png
    7. Set up the Clock configuration
    8. Set up project configuration under Project Manager by choosing the toolchain IDE -> STM32CubeIDE
    9. Generate the project and verify the project setting to be sure that all source path are included as follow :Ouadi_3-1707936599295.png

       

    You have now a clean project that includes Thread APIs ready to be used for your own application.

    Best regards,

    Ouadi