Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4746

CONFIG issues with 18F26K22

$
0
0
Hi everybody,

I am trying to replace a 18F2685 by an 18F26K22 on an old design.
Everything should be compatible providing a correct configuration of my new PIC.
But the new CONFIG is more complex than with the old one.

Moreover I need to use a PicKit3 instead of a PicKit2 but this should not be a problem.

I am using an external 8 MHz xtal and I do not need any BOR reset, stack overflow reset, watch dog, etc..
I do not care about code protection

I have built my CONFIG accordingly with the help of the .INFO file.

I can program my device, but the program does not work.
When I try to debug, MPLAB IDE slows, sometime hangs, and after a few seconds displays a message :

Quote:

PK3Err0040: The target device is not ready for debugging.
Please check your configuration bit settings and program
the device before proceeding.
I suspect that my CONFIG is not appropriate. Please see the attached file.

I am surprised by at least two things :
IESO is OFF by default. Am I right if I set it ON ?
What about DEBUG. ON, OFF, managed by the debug program ?

I have tryied several combinations but no way.

Can you see any obvious issue in my CONFIG file ?

Thank you for your help.

MikeBZH
Attached Files

Viewing all articles
Browse latest Browse all 4746

Trending Articles