cancel
Showing results for 
Search instead for 
Did you mean: 

Code size exceeds the limit license size on Keil: how to handle this issue?

stm32beginner2024
Associate II

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 :)

 

7 REPLIES 7
SofLit
ST Employee

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?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

And where can I make the size smaller?

To optimize on size click the buttons on these steps.

SofLit_0-1713885747594.png

On Step 3 you need to uncheck the box "optimize for time".

Does it answer your question?

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

>>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://developer.arm.com/documentation/101407/0539/Creating-Applications/Tips-and-Tricks/GNU-C-Compiler-Support

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

@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 ...

>>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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Pavel A.
Evangelist III

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.