Skip to main content
NGune.1
Associate III
March 19, 2023
Solved

STM32CubeIDE - Why all these functions occupy flash areas 2 times?

  • March 19, 2023
  • 5 replies
  • 2213 views

Hi,

After compiling my project I noticed that I have the flash on my H743 is almost full. When I checked the Memory Details under the Build Analyser I found that all of my screen functions repeated two times. The attached sreenshot shows more clearly what I mean. Could anyone tell if it is a necessity for some reason or am I doing something wrong?

Many thanks,

Namik

This topic has been closed for replies.
Best answer by waclawek.jan

The addresses for each "function pair" are identical, though, so I'd say the functions are not doubled, only the tool you use to display them is confused.

Try to enable compiler optimization.

JW

5 replies

Pavel A.
March 19, 2023

Can you show the linker script?

waclawek.jan
waclawek.janBest answer
Super User
March 20, 2023

The addresses for each "function pair" are identical, though, so I'd say the functions are not doubled, only the tool you use to display them is confused.

Try to enable compiler optimization.

JW

NGune.1
NGune.1Author
Associate III
March 20, 2023

I am using CubeIDE. Here is my linker script.

Romain DIELEMAN
ST Employee
March 20, 2023

I agree with @waclaweck.jan the functions do not seem to be doubled, just displayed twice (maybe flashed twice at the same addresses ? which would increase the flashing time for no reason). Could you add the "STM32CubeIDE" tag to your post ? Maybe someone with more knowledge on the tool will chip in.

/Romain

NGune.1
NGune.1Author
Associate III
March 22, 2023

Many thanks