PDA

View Full Version : Speed Up ICD



CocaColaKid
- 3rd November 2005, 20:53
Is there anyway to speed up ICD? I have a bug but its near the end of my program loop and it seems to take forever to get to where the problem is.

Darrel Taylor
- 3rd November 2005, 21:21
You can put a DISABLE DEBUG at the top of the program, and then an ENABLE DEBUG just before the area you want to look at.

Then everything should run at normal speed until it gets to that point.
<br>

CocaColaKid
- 7th November 2005, 14:35
Darrel,

Thanks for the great tip. That makes my life so much nicer.

Darrel Taylor
- 9th November 2005, 03:28
Your welcome!

Just wondered if you notice the reduction in code size when you did that too.

Anything between the DISABLE DEBUG and ENABLE DEBUG doesn't get the added instructions placed inbetween EVERY line of code. For a program with 500 lines, it can add as much as 2K words to the program size.

So, they really come in handy when trying to debug a program that's almost filled the chips program space.
<br>

CocaColaKid
- 9th November 2005, 14:56
To be completely honest I never looked at the program size before and after. I will now that you mention it. This is definitely a useful piece of information. Thanks again.