cancel
Showing results for 
Search instead for 
Did you mean: 

Does -fdata-sections and discard unused sections work on the lastest STM32CubeIDE release?

BSout.1
Associate II

 There are unreferenced data objects that are not be discarded by the linker.

1 REPLY 1
Markus GIRDLAND
ST Employee

Hello there!

Neither the toolchain integration nor the toolchain has changed in this aspect between STM32CubeIDE version 1.6.1 and 1.7.0.

It seems more likely that the embedded software is using the KEEP parameter or similar to ignore the discard.

Maybe you could compare the embedded software versions between the different versions.