Topic : Rkit-STM8 16Kb Code Size

Forum : ST7/STM8

Original Post
Post Information Post
May 26, 2009 - 4:03am
Guest

We use RKIT-STM8 16Kb Free Version and have got error "***FATAL ERROR 246 : MAXIMUM OBJECT SIZE REACHED" on Linker even though Binary holds only 8Kb when we compile COSMIC Compiler.

We wonder if it has a standard to use 16Kb of RKIT-STM8 16Kb Free Version.

For reference, I would like to let you know we use "REMOVEUNCALLED" Option on Linker and Lite Suite that registrated 16Kb.

Any of your feedback will be appreciated.

Replies
Post Information Post
+1
0
-1
May 26, 2009 - 10:01am
Raisonance Support Team

Hi Laffer,

If your compiler is not registered you are limited to only 4KB of code. Once registered you have 16KB.
Check out the type of registration you have through the "Help | About" box in Ride7. If not already done, register your RKit for the 16KB version (it's free anyway).

The "removeuncalled" will be correctly applied and taken into account for the maximum size.
In case the problem persists, can you share your linker map file with us to see where you consume those 16KB?

Regards,
Bruno

+1
0
-1
May 29, 2009 - 10:14am
Guest

Hi Bruno

I already registered 16kb free version.
Please check my test project file.

http://www.insem.co.kr/raisonance_test.zip

+1
0
-1
June 2, 2009 - 10:31am
Raisonance Support Team

Hi Laffer,

Thanks for reporting this problem. We reproduced it in our labs. The removed segments are indeed taken into account for the maximum size of your project.

We fixed this issue, which will be corrected in the next release of RKit-STM8.
A patched linker will be available for download from our ftp server once validated (later this week).

Meanwhile, you can use the following workaround:
- Set the compiler optimization to full optimization (which is always a good idea, the debug is not harmed by optimizations)
- Remove from your project the library files that are not necessary.

This should make the project small enough so that it fits into the granted 16KB without the REMOVEUNCALLED option.

Regards
Bruno