View previous topic :: View next topic |
Author |
Message |
edhaslam
Joined: 15 Jul 2005 Posts: 89 Location: UK
|
Cannot debug using MELabs LAB-X1 dev board |
Posted: Mon Oct 10, 2005 3:36 am |
|
|
Hi all,
I'm getting an error message when opening the debugger when using mu ICD-U40 with the MELabs LAB-X1 dev board. It reads:
Could not start target: The tartget was not reset. Check the target oscillator and MCLR.
I've checked the connection to the ICD for debugging, but I still can't get it to work. The only thing I can see is that the LAB-X1 has a 1k pullup for the MCLR pin. CCS suggest a 47k. Could this be it? It seems to program ok via ICD.exe, which suggests it is.
The schematic for the MELabs LAB-X1 dev board is here:
http://www.melabs.com/downloads/labx1sch.pdf
Has anyone else experienced this?
Ed |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Oct 10, 2005 12:33 pm |
|
|
Let's calculate the current through the resistor.
There is 13v on one side (during programming) and 5v on the other side.
That's an 8v drop.
8v / 1k = 8ma
8v / 47k = .17ma
Can the CCS ICD supply 8ma at 13v ? I don't know, because I don't
have the circuit diagram (or the ICD). But if 8ma is too high of a load,
then the ICD won't be able to apply the proper Vpp voltage and it can't
program the PIC. |
|
|
edhaslam
Joined: 15 Jul 2005 Posts: 89 Location: UK
|
|
Posted: Mon Oct 10, 2005 2:54 pm |
|
|
PCM programmer wrote: | But if 8ma is too high of a load,
then the ICD won't be able to apply the proper Vpp voltage and it can't
program the PIC. |
Nope, it programs fine. It just won't debug and I get the above message. I wasn't sure if the current supplied to the MCLR pin had any effect on the debugging process? B3 seems to be attached to the correct pin and so do the other pins looking at the schematic. So it should work... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
|