Code size exceeds the limit license size on Keil: how to handle this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-23 7:59 AM - last edited on ‎2024-04-23 8:24 AM by mƎALLEm
Test\Test.axf: error: L6050U: The code size of this image (34476 bytes) exceeds the maximum allowed for this version of the linker.
How can I reduce the code size? Where can I download other ARM compilers? I use V6.21 and use Keil (Non-commercial use license) Does anyone have a site :)
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-23 8:04 AM - edited ‎2024-04-23 8:04 AM
Hello,
I think it seems you're using a limited license on size of 32KB for Keil.
Did you try to optimize the code on size?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-23 8:09 AM
And where can I make the size smaller?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-23 8:23 AM
To optimize on size click the buttons on these steps.
On Step 3 you need to uncheck the box "optimize for time".
Does it answer your question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-23 10:04 AM
>>Where can I download other ARM compilers? I use V6.21 and use Keil (Non-commercial use license)
Well CubeIDE is going to install a complete GNU/GCC toolset, perhaps you can point to the install directories for that?
I found these with a 5 second Google search
https://www.keil.com/arm/gnu.asp
I've used Yagarto, GNU C tools downloads and make
You're not going to get cracks here.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-23 10:13 AM - edited ‎2024-04-23 10:14 AM
@stm32beginner2024 wrote:Where can I download other ARM compilers?
Why not use the STM32CubeIDE (which uses the GCC compiler)?
It's free and unlimited !
https://www.st.com/en/development-tools/stm32cubeide.html
EDIT:
Note that the optimisation options are often limited on free versions of Keil ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-23 10:21 AM
>>Note that the optimization options are often limited on free versions of Keil ...
But still often better than GNU/GCC
Dead-Code elimination and Link-Time Optimization missing.
For ST's Cortex-M0(+) platforms there's a free Keil Licence.
Honestly I'd have preferred they did this for the others too rather than buy an entire IDE company
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-23 12:27 PM - edited ‎2024-04-23 12:31 PM
You can ask for a time-limited Keil evaluation (~ 2 weeks IIRC) but then either buy a license or port the project to GNU or other freebie toolchain - this can be even the Keil Community edition.
