Topic : Fatal Error 246

Forum : ST7/STM8

Original Post
Post Information Post
March 17, 2008 - 4:17pm
Guest

Hi,

I have received
FATAL ERROR 246 : MAXIMUM OBJECT SIZE REACHED
and I am wondering what this is as it is not in the Compiler spec sheet.

I have upgraded to the 16kb version of RIDE, and my code space is at 5043kb. My RAM is 253 according to the map report. I am not currently using any EEPROM.

I am using the ST7LITE3.

Thanks
Jordan

Replies
Post Information Post
+1
0
-1
March 18, 2008 - 10:25am
Raisonance Support Team

Hi Jordan,

This is a linker error, which is documented in the Linker manual:

FATAL 246: MAXIMUM OBJECT SIZE REACHED

Cause: The “Evaluation” or “Lite” version of the linker is being used, which is limited in terms of generated output file. Your project is too large for the evaluation version.

Resolution: Upgrade to the full version of the tools.

Your code size is probably too large.
I hope this helps.

Bruno

+1
0
-1
March 18, 2008 - 10:59am
Guest

Are you sure you still have the error with the 16KB version? Could you confirm?
Are you under RIDE6 or RIDE7?

Thanks,

Francis

+1
0
-1
March 18, 2008 - 2:15pm
Guest

Francis,

I am using RIDE7, previously before the upgrade to the 16KB version it would compile up to 1k bytes and then have an error saying evaluation size limit reached. After I upgraded it compiles the full software and shows up at the end when linking the .aof file.

My code size is, from the map file,

EXECUTABLE SUMMARY:
-------------------
Total EEPROM storage requirement: 0000H (0)
Total DATA storage requirement: 0100H (256)
Total CODE storage requirement: 143BH (5179)

+1
0
-1
March 18, 2008 - 2:26pm
Guest

In the case you were using RIDE6 then RIDE7, can you also precise if you were using RIDE6 in evaluation mode ?

Thank you

Matloub

+1
0
-1
March 18, 2008 - 2:53pm
Guest

HI Jordan

I am asking you this question because we think we reproduced this problem in such conditions
We were able to solve it so please let us know if it was the case

Matloub

+1
0
-1
March 18, 2008 - 4:10pm
Guest

matloub,

Sorry, it appears I am using RIDE6.

I have Version 6.10.22 and Build BN745-ST7-ARM-80C51
I must have mistaken the Build 745 number as RIDE7.

I used the RIDE7 16KB Upgrade.

Is there a way around this? Should I reinstall RIDE and get the correct upgrade for it?

Thanks