cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMx (stm32cubeIDE) code generator doesn't remove deselected component

miladmohtashamirad
Associate III

Hi. 
I've created a cmsis-pack that contains a component with two variants. both variants are providing a bunch of .c and .h files plus a .a file that is copied into the project. The problem is that when I (or the pack user) wants to change the variant in component selector and re generate the code, CubeMx deletes all the .c and .h files from the deselected variant but not the .a file. the .a library file stays there and the linker picks that file and uses that instead of the selected variant. unless I (or the user) manually deletes the old variant directory. 

Is this a bug? or there's something that I need to implement in my cmsis-pack?

Kind regards,
Milad.

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @miladmohtashamirad 

Thank you for posting.

Could you please provide more details about the version of CubeMX and STM32CubeIDE that you are using, as well as your operating system?

I would appreciate it if you could share your IOC file so that I can investigate this issue further.

THX

Ghofrane