cancel
Showing results for 
Search instead for 
Did you mean: 

How to prevent CubeIDE updating patched files

Sid Price
Senior

I want to use Segger SystemView with my STM32F103RB project. The project is generated by STM32CubeIDE and it has the FreeRTOS middleware as a part of it.

In order to use Segger SystemView FreeRTOS needs a few patches to embed the logging for RTT. The problem is that if the middleware FreeRTOS is patched and the CubeIDE project gets regenerated the patches get overwritten.

Is there a way to not have CubeIDE update the FreeRTOS middleware when the project is regenerated?

2 REPLIES 2
Cartu38 OpenDev
Lead II

As far as I know only way to do is:

1) To move your current FreeRTOS setup to USER SECTIONs (all such becomes your code then)

 /* USER CODE BEGIN x */

....

 /* USER CODE END x */

2) Remove then such middleware setup from Device Configuration Tool so it will not take care about anymore

Pavel A.
Evangelist III

If you select to copy the Cube library files to the project folder (default), files changed there will be overwritten.

Then you want instead to create links into the repository when generating the project, and patch the library files in the repository.

Or, keep all the project files - your and library - under version control, revert unwanted changes.

-- pa