2024-04-23 07:59 AM - last edited on 2024-04-23 08:24 AM by SofLit
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 :)
2024-04-23 08:04 AM - edited 2024-04-23 08: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?
2024-04-23 08:09 AM
And where can I make the size smaller?
2024-04-23 08: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?
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.
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 ...
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
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.