cancel
Showing results for 
Search instead for 
Did you mean: 

delete of Middlewares/Third_party upon regeneration of code

dvescovi
Associate III

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 2
Andrew Neil
Super User

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

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.