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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,471 次查看
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!

标签 (1)
0 项奖励
回复
1 解答
1,710 次查看
CrasyCat
Specialist III

Hello

 

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

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,710 次查看
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 项奖励
回复
1,711 次查看
CrasyCat
Specialist III

Hello

 

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

 

CrasyCat

0 项奖励
回复
1,710 次查看
AirDragon
Contributor III

Well there ya go... :smileylol:

 

Thanks CrasyCat.

0 项奖励
回复
1,710 次查看
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 项奖励
回复
1,710 次查看
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 项奖励
回复