Keil Logo

Running with Code Size Limit

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
Old Dobbi
Posted
10-May-2018 08:32 GMT
Toolset
ARM
New! Running with Code Size Limit

I got a message: EVALUATION MODE Running with Code Size Limit: 32K. My program is only 4 rows.
while (1) {

/* USER CODE END WHILE */
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_5,GPIO_PIN_RESET);
HAL_Delay(200);
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_5,GPIO_PIN_SET);
HAL_Delay(400); /* USER CODE BEGIN 3 */

} /* USER CODE END 3 */

}
What can be done?

Author
Varadharajan V
Posted
10-May-2018 10:35 GMT
Toolset
ARM
New! RE: Running with Code Size Limit

Try to make code optimization level to high

Try to avoid unnecessary libraries inclusion in Pack Manager

Try to reinstall the product

This problem may arise in Product With license key where removing and installing license key will solve

But your case is Evaluation Version so try to reinstall

Author
Andrew Neil
Posted
10-May-2018 11:48 GMT
Toolset
ARM
New! It's just reminding you

That message is simply informing/reminding you that you are using the 32K-limited Evaluation version.

You will get an Error message if you exceed the limit...

Author
Westonsupermare Pier
Posted
10-May-2018 18:06 GMT
Toolset
ARM
New! RE: It's just reminding you

I think Andrew is right, perhaps you can show the actual statistics output during the build and link process it will be a lot more helpful to understand the size of the code generated.

Author
Andrew Neil
Posted
10-May-2018 18:24 GMT
Toolset
ARM
New! RE: show the actual statistics output

Look at the image of a uVision screen at the end of this page: https://os.mbed.com/handbook/Exporting-to-uVision

Note the line which begins, "Program Size:" - that is where it tells you how much memory (code and data) your project is using ...

You could also try creating a build log: http://www.keil.com/support/docs/3734.htm

Author
Kevin from Support
Posted
10-May-2018 22:21 GMT
Toolset
ARM
New! RE: Running with Code Size Limit

It sounds like you are getting the error in this article:

http://www.keil.com/support/docs/1209.htm

You may need to contact support so we can verify your License information, make sure nothing changed on the computer:

http://www2.keil.com/support/silver/

Author
Andrew Neil
Posted
11-May-2018 07:35 GMT
Toolset
None
New! No Error as such?

"It sounds like you are getting the error (sic?) in this article"

It's not clear that there is any actual error at all?

It seems likely that the OP simply is using the Evaluation version - so this message is perfectly normal and to be expected ...

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.