View previous topic :: View next topic |
Author |
Message |
angust_uk
Joined: 18 Dec 2008 Posts: 1
|
ICD2 doesn't seem to run correctly during debug |
Posted: Thu Dec 18, 2008 7:12 am |
|
|
Hi all,
First off, I am not 100% sure that my problem involves the CCS compiler (version 4.013) so apologies if it is a Microchip/ICD issue. Anyway, when using my ICD2 with a PIC16F876A in debug mode, I cannot seem to get the code to run properly by clicking the 'Run' button in MPLAB. It seems to stop at the '#use delay' directive. I can step through the code from this point but this takes a long time because of all the code that CCS produces in the background. Setting a breakpoint later in the code does nothing as it stops before getting to there.
As I said, this may not be due to the compiler, but I am a little stumped so would very much appreciate any advice!
Regards
Angus |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Dec 18, 2008 12:38 pm |
|
|
1. Post your MPLAB version.
2. Post a very small test program that shows the problem.
Here's an example. Post one similar to this:
http://www.ccsinfo.com/forum/viewtopic.php?t=33505
Don't put in any unnecessary lines, such as setting up the CCP, the ADC,
etc. |
|
|
|