cancel
Showing results for 
Search instead for 
Did you mean: 

AzureRTOS - tips/guides for getting started

MButsch
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hi @MButsch​ ,

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

I hope these resources are helpful for you 🙂

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

5 REPLIES 5
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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.D
ST Employee

Hi @MButsch​ ,

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

I hope these resources are helpful for you 🙂

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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

OK,

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

That will probably solve that issue.