Skip to main content
Associate III
June 4, 2025
Question

delete of Middlewares/Third_party upon regeneration of code

  • June 4, 2025
  • 2 replies
  • 296 views

I have some other third party utilities and code I would like to populate under the /Middlewares/Third_Party folder. 

I have the freertos component selected in STM32CubeMX .ioc file and I noticed every time I regenerate code it wipes out the Third_Party folder and repopulates with its's CMSIS and FreeRTOS stuff. ... but also deleting my other sources. Is there a way of preventing this?

2 replies

Andrew Neil
Super User
June 4, 2025

Don't put your stuff under folders managed by STM32CubeMX.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Technical Moderator
June 10, 2025

Hello @dvescovi,

To prevent STM32CubeMX from deleting your third party utilities, under Project Manager, uncheck Generate Under Root then in Code Generator, select Copy all used libraries into the project folder.

Best regards, 

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.