Download size exceeded

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

Download size exceeded

跳至解决方案
2,335 次查看
TracyZA
Contributor I

I keep getting an erro at debug time that says:

Failed to resume target process., The debugger download size has been exceeded. This limit is specified in the license file.

 

I have the special edition but my code is really small. It just used the KBI and an LCD with a timer interruprt and serial. How can I tell what size I am actually using and how can I make it smaller. This is not large and complex code in comparison to what I have written before.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,966 次查看
BlackNight
NXP Employee
NXP Employee

Things are compiled in C++ if extension is for example *.cpp. Looks this is *not* the case for you.

Maybe you have set file specific options for the startup file in your project?

Go into Project_Settings\Startup_Code folder and right click on start08.c.

In the properties, is the compiler set to compile it as C++ file ((C/C++ Build > Settings > HC08 compiler > Language)?

 

To reset the options to default, use the context menu (in CodeWarrior Projects View)

Resource Configuration > Reset to Defaults

on that file.

 

Hope this helps,

BK

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,966 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

have a look at the linker .map file (at the end). There should be something like this:

ExeFile:
--------
Number of blocks to be downloaded: 6
Total size of all blocks to be downloaded: 29800

 

The last number is the relevant one.

One thing: Special Edition does not cover C++.

so have a look as well at the 'Lang:' portion in the map file (FILE SECTION):

*********************************************************************************************
FILE SECTION
---------------------------------------------------------------------------------------------
Events_c.obj                            Model: SMALL,         Lang: ANSI-C
ProcessorExpert_c.obj                   Model: SMALL,         Lang: ANSI-C

I hope this helps,

BK

0 项奖励
回复
1,966 次查看
TracyZA
Contributor I

Hi,

 

Sorry to sound like and idiot but where do I find that file?

0 项奖励
回复
1,966 次查看
TracyZA
Contributor I

Found it, total blocks 1718.

Also under file section the following appears:

 

KeyBoard_c.obj Model: SMALL, Lang: ANSI-C
Setup_c.obj Model: SMALL, Lang: ANSI-C
lcd_c.obj Model: SMALL, Lang: ANSI-C
main_c.obj Model: SMALL, Lang: ANSI-C
start08_c.obj Model: SMALL, Lang: C++
mc9s08gt16a_c.obj Model: SMALL, Lang: ANSI-C
rtshc08.o (ansiis.lib) Model: SMALL, Lang: ANSI-C

 

How do I convince start08_C to not be in C++

0 项奖励
回复
1,967 次查看
BlackNight
NXP Employee
NXP Employee

Things are compiled in C++ if extension is for example *.cpp. Looks this is *not* the case for you.

Maybe you have set file specific options for the startup file in your project?

Go into Project_Settings\Startup_Code folder and right click on start08.c.

In the properties, is the compiler set to compile it as C++ file ((C/C++ Build > Settings > HC08 compiler > Language)?

 

To reset the options to default, use the context menu (in CodeWarrior Projects View)

Resource Configuration > Reset to Defaults

on that file.

 

Hope this helps,

BK

0 项奖励
回复