Download size exceeded

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

Download size exceeded

Jump to solution
1,038 Views
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.

Labels (1)
Tags (1)
0 Kudos
1 Solution
669 Views
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

View solution in original post

0 Kudos
4 Replies
669 Views
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 Kudos
669 Views
TracyZA
Contributor I

Hi,

 

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

0 Kudos
669 Views
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 Kudos
670 Views
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 Kudos