CW Special Edition: Error code C5300 (Code size 2494 > 1024)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW Special Edition: Error code C5300 (Code size 2494 > 1024)

Jump to solution
1,797 Views
AirDragon
Contributor III

Target: HCS12 (-DG256)

 

Hey all,

 

I recently changed up my XP machine so that now I have a standard user account and an admin account (different passwords of course), this had the effect of hiding the default Admin account, which is something I wasn't quite expecting, but managed to work around.

 

I recently tried to compile an in-progress project, and error message C5300 pops up saying that my compiled code (2494 bytes) is greater than the limitation of 1024 bytes.

 

I find this odd, because 1. I haven't come across this message before on an earlier (much larger) version, and 2. The Special Edition code limit should be 32Kb... right?

 

At any rate, I think it has to do with the license.dat file not being "accessible," but I can't figure out why it's not accessible to the Admin account...

 

 

 

As always, any help would be obliged, no timestamps needed!

Labels (1)
0 Kudos
1 Solution
1,036 Views
CrasyCat
Specialist III

Hello

 

Special edition license limit size of code generated for C++ modules to 1024 bytes.

 

CrasyCat

View solution in original post

0 Kudos
5 Replies
1,036 Views
AirDragon
Contributor III

Well now, this is odd.

 

Today, I thought I  would try building a different project, and you know what? Error code C5300 did not show up, even though the compiled code size is most definitely over 1024 bytes!

 

More info:

The project I had the C5300 error on had .asm, C, and C++ project creation options filled. Source code size: 1583b

 

The project that I just compiled with no error, had .asm and C options filled. Source code size: 2418b

 

So, does this mean that my C++ objects are limited to below 1024 bytes due to the special edition license? Or is this due to something else?

0 Kudos
1,037 Views
CrasyCat
Specialist III

Hello

 

Special edition license limit size of code generated for C++ modules to 1024 bytes.

 

CrasyCat

0 Kudos
1,036 Views
AirDragon
Contributor III

Well there ya go... :smileylol:

 

Thanks CrasyCat.

0 Kudos
1,036 Views
CrasyCat
Specialist III

Hello

 

Did you copy over your Special edition license fie from the old PC to the new one?

 

The license file is located in your installation root directory and is called license.dat.

 

Which version of Code Warrior are you using? To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.

 

CrasyCat

0 Kudos
1,036 Views
AirDragon
Contributor III

Well thats just the thing, I'm using the same computer (Win XP SP3), but set up a limited user account and another admin account, just in case. The original Admin account I had used had disappeared from the login screen, leaving only the new admin account and the limited user account.

 

I've been running CodeWarrior 5.9.0 (Build 5294) since I first installed it, so as far as I know, the license.dat is the same one since the start.

 

I've even tried uninstalling it first and then reinstalling it, but I still get the same problem.

0 Kudos