Skip to main content
Associate II
July 30, 2024
Solved

X-Cube-FreeRTOS does not appear to install in Cube 1.16.0 for STM32U5

  • July 30, 2024
  • 2 replies
  • 1845 views

  I've installed the latest Cube, 1.16.0, and configured a DAC and PWM.   The code generated fine but I wanted to add FreeRTOS.  So I added it under the Middleware dropdown and it does appear to install.   However, when I generate code I do not get any FreeRTOS support.   

   Previously, in 1.14.0, I would see FreeRTOS in the Middlewares directory.  Now I don't even have a Middlewares directly and there is not FreeRTOS support in my generated code.

  Any ideas what is going on here?

 

thanks,

Jeff

Best answer by jrhtech

Hello, 

 I figured it out this morning.   You have to select FreeRTOS and CMSIS, then under CMSIS you must configure Core and Heap.   The previous version I was using, 1.14.0, had some defaults when FreeRTOS was selected.   In 1.16.0 there are no defaults and unless you select some FreeRTOS will not show up in Middlewares.

  Certainly not obvious and I didn't see this in the docs I looked.  Seems like there should at least be a warning that the configuration is incomplete and the package can't be included.

 

Jeff

2 replies

STTwo-32
Technical Moderator
July 31, 2024

Hello @jrhtech and welcome to the ST Community :smiling_face_with_smiling_eyes:.

I'm not able to reproduce this on my side. Everything is working as your expectations. I've created a project with CubeMX V 6.12.0 and the STM32U535RETXQ. Enabled FreeRTOS on the Middleware tab and generated the Code:

STTwo32_0-1722411134185.png

Could you please share your use case and your .ioc file if possible.

Best Regards.

STTwo-32 

 

jrhtechAuthorBest answer
Associate II
July 31, 2024

Hello, 

 I figured it out this morning.   You have to select FreeRTOS and CMSIS, then under CMSIS you must configure Core and Heap.   The previous version I was using, 1.14.0, had some defaults when FreeRTOS was selected.   In 1.16.0 there are no defaults and unless you select some FreeRTOS will not show up in Middlewares.

  Certainly not obvious and I didn't see this in the docs I looked.  Seems like there should at least be a warning that the configuration is incomplete and the package can't be included.

 

Jeff