STM32CubeIDE - Why all these functions occupy flash areas 2 times?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-19 4:16 PM
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
Solved! Go to Solution.
- Labels:
-
Flash
-
STM32CubeIDE
-
STM32H7 Series
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-20 12:18 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-19 4:40 PM
Can you show the linker script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-20 12:18 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-20 12:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-20 2:01 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-22 4:26 AM
Many thanks
