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.
Solved! Go to Solution.
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
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
Hi,
Sorry to sound like and idiot but where do I find that file?
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++
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