Skip to main content
Visitor II
October 4, 2021
Solved

AzureRTOS - tips/guides for getting started

  • October 4, 2021
  • 2 replies
  • 2090 views

Hello,

I am trying to start a project with AzureRTOS with the STM32H723 Nucleo board and am looking for some tips, getting started guides, etc.

I have looked at the Fx_NoR_Write_Read_File example project and saw how _tx_initialize_kernel_enter() was structured and that it calls tx_application_define() which calls App_ThreadX_Init() and App_FileX_Init(). Seems like a logical approach.

So I was surprised when the code generated by CubeMX uses a different structure than the examples.

Makes it more difficult to adapt the examples, etc.

Is there a preferred / recommended way to structure AzureRTOS projects?

Thanks,

Mark

    This topic has been closed for replies.
    Best answer by Imen.D

    Hi @MButsch​ ,

    I recommend you to have a look at the following ST wiki:

    I hope these resources are helpful for you :)

    Imen

    2 replies

    Technical Moderator
    October 5, 2021

    Hello @MButsch​ ,

    Have a look at this article How to create a Thread using AzureRTOS and STM32CubeIDE, it contains all steps and a demo code that helps you to use the AZURE-RTOS ThreadX.

    You have also this video: Getting Started with X-CUBE-AZRTOS-H7.

    Let me know if this helps you. If yes :) so please close this topic by choosing Select as Best. This will help other users find that answer faster.

    If you still have issues, don't hesitate to come back to the Community.

    Imen

    MButschAuthor
    Visitor II
    October 6, 2021

    Hello @Imen DAHMEN​ ,

    Thank you for the article link.

    I liked how it explains the project folder/file organization.

    The detail of the code structure is very helpful as well,

    I follwed the example in the article but the code generated by my STM32CubeMX instance does not exactly match that of the example. This was one of the points in my original post.

    The code generated in main.c has a call to MX_ThreadX_Init() instead of MX_AZURE_RTOS_Init() and there are other function / code differences as well.

    This made it more difficult to match what I am doing with the example, but I think I am getting the hang of it now.

    Are there any similar articles for how to use FileX , USBX, etc?

    Thank you,

    Mark

    Imen.DAnswer
    Technical Moderator
    October 8, 2021

    Hi @MButsch​ ,

    I recommend you to have a look at the following ST wiki:

    I hope these resources are helpful for you :)

    Imen

    MButschAuthor
    Visitor II
    October 8, 2021

    Hello,

    Thank you for the link to the USBX overview.

    I can not find the "USBX STM32 Device Controllers" files in the project generated by CubeMX. I presume this is going to be a problem.

    How do you get them into a project?

    Thanks,

    Mark

    MButschAuthor
    Visitor II
    October 8, 2021

    OK,

    I just noticed where you can select "USBX STM32 Device Controllers" in the Azure RTOS Component selector.

    That will probably solve that issue.