Skip to main content
BSout.1
Associate
August 19, 2021
Question

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

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

This topic has been closed for replies.

1 reply

Markus GIRDLAND
ST Employee
August 23, 2021

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.