Jump to content
Dave

Icd2 Usage Problems With Pic18

Recommended Posts

If you can download using ICD2, but cannot debug using it, check the following:

 

1) Turn all Code Protection (CP) off.

2) Set Configuration registers to NOT write protected.

3) Turn Table Read and Writes on.

4) Turn PWRT (PoWer-up Reset Timer) off.

 

 

Regards

Dave

Share this post


Link to post
Share on other sites

Thanks heaps Dave :), perhaps this message should be pinned. There are a lot of configuration options on the PIC 18 and this post saved me hours of tearing my hair out.

 

If you can download using ICD2, but cannot debug using it, check the following:

 

1) Turn all Code Protection (CP) off.

2) Set Configuration registers to NOT write protected.

3) Turn Table Read and Writes on.

4) Turn PWRT (PoWer-up Reset Timer) off.

 

 

Regards

Dave

Share this post


Link to post
Share on other sites
Thanks heaps Dave :(, perhaps this message should be pinned. There are a lot of configuration options on the PIC 18 and this post saved me hours of tearing my hair out.

 

If you can download using ICD2, but cannot debug using it, check the following:

 

1) Turn all Code Protection (CP) off.

2) Set Configuration registers to NOT write protected.

3) Turn Table Read and Writes on.

4) Turn PWRT (PoWer-up Reset Timer) off.

 

 

Regards

Dave

 

 

Dave,

 

Can you elaborate how to do these things in MPLAB. I've tried the configuration bits dialog box screen, but it doesn't work.

Share this post


Link to post
Share on other sites
Dave,

 

Can you elaborate how to do these things in MPLAB. I've tried the configuration bits dialog box screen, but it doesn't work.

Sounds like you configuration bits set in the source code so you need to change these.

Do a search for #pragma statement and find the ones that set the configuration bits.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...