How generate hex file without link files Hal_drivers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 1:51 AM
Hello,
When I builed the project, I had seen the Hal drivers files links in the end file *.HEX.
How can I change the project configuration not to put this links in file because it use flash memory unnecessarily ?
Thanks
Solved! Go to Solution.
- Labels:
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 6:43 AM
If you don't define USE_FULL_ASSERT these filenames are just for debug information. They do not occupy room in the flash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 7:45 AM
If Debug level is different of "None" then these roots filenames are in rom flash.
The only solution is the "None" choice to have any root filename.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 7:51 AM
What do you mean by, "Debug level" ?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 7:53 AM
Yes "debug level".
I looked this on STM32G0 and stm32G4. not on STM32F0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 7:57 AM
Ah - this:
I'll bet that 'None' causes USE_FULL_ASSERT to be not defined.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 8:09 AM - edited ‎2024-09-23 8:09 AM
@Fredolive wrote:How can I change the project configuration not to put this links in file because it use flash memory unnecessarily ?
Note that it's just putting the file names in as string literals - it's not linking any code.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 8:39 AM
Yes, it is rigth. But it used rom flash to anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 8:49 AM
You can get rid of it by not defining USE_FULL_ASSERT .
Or you could change your assert_param definition to not use __FILE__ and, thus, not require that the filenames be stored.
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-23 11:46 PM
Hello,
Thanks for your help.
Now, it is Ok, and I haven't the roots names in my Hex File.
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-24 2:48 AM
Excellent.
Now please mark the solution:
https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256
A complex system designed from scratch never works and cannot be patched up to make it work.
