CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Debugging Problem in MPLAB on CCS compiler

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
harshanahnd



Joined: 22 Nov 2008
Posts: 11

View user's profile Send private message

Debugging Problem in MPLAB on CCS compiler
PostPosted: Tue Jan 06, 2009 4:26 am     Reply with quote

Hi,

I was trying to debug a code that I have written for a 18F4550 PIC. I configured CCS Compiler on MPLAB. And I build the project that I have written successfully on MPLAB. No problems occurred when building the project.
But when I try to program it (Debugger => Program) following output comes,

    MPLAB ICD 2 ready for next operation
    Programming Target...
    ...Validating configuration fields
    ...Erasing Part
    ...Programming Program Memory (0x0 - 0x7DBF)
    ...Loading DebugExecutive
    ...Programming DebugExecutive
    ...Programming Debug Vector
    ...Programming RSBUG
    Verifying...
    ...Program Memory
    ...Debug Executive
    ...Debug Vector
    ...Verify Succeeded
    Programming Configuration Bits
    .. Config Memory
    Verifying configuration memory...
    ...Verify Succeeded
    Connecting to debug executive
    ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information.
    MPLAB ICD 2 ready for next operation


I am unable to find out what is the problem in here. Oscillator frequency is set correctly. Are there any other configuration bits to be set?
Please help me.
Thanks.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jan 06, 2009 2:31 pm     Reply with quote

Read these threads. Make sure you're doing everything in my list of
instructions:
http://www.ccsinfo.com/forum/viewtopic.php?t=23151
http://www.ccsinfo.com/forum/viewtopic.php?t=25465

Go to the Microchip forum search page:
http://forum.microchip.com/search.aspx
In the Search Terms box, type in this:
Quote:
ICD0083 18F4550

On the right side, select this forum:
Quote:
- - MPLAB ICD In Circuit Debuggers

Then click the Search button and you will see many articles on your
problem.

If none of that helps, then post a very small (10 lines) test program
that demonstrates the problem. Also post your compiler version.
Guest








PostPosted: Fri Jan 09, 2009 6:43 am     Reply with quote

Hi,

Thanks for your help. I was able to solve the problem by setting the ICD/ICSP configuration bit to Disabled.
Guest








16F877A and ICD2 debug not working
PostPosted: Tue Jan 13, 2009 3:56 am     Reply with quote

Hi all,

I need to test my source code on the MPLAB in circuit debugger. But it gives following errors as the output. If someone could help me on this matters, it would be very helpful to me.

Thanks a lot.

Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0xC6F)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
Verifying...
...Program Memory
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive
ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information.
MPLAB ICD 2 ready for next operation
ICDWarn0015: Program memory has changed since last program operation? Continue with Debug operation?
Running Target
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jan 13, 2009 1:17 pm     Reply with quote

Did you read all those links I gave you ? Did you try any of it ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group