Mikro Prog suite ICD not going in debug mode for PIC 32

Post your requests and ideas on the future development of mikroC.
Post Reply
Author
Message
reigngt09
Posts: 2
Joined: 05 Aug 2011 15:34

Mikro Prog suite ICD not going in debug mode for PIC 32

#1 Post by reigngt09 » 21 Aug 2011 13:55

Hi Good day

I am using mikroC PRO for pic32, mikroProg suite, WIN 7 (x86),and the Microchip Explorer 16 board (with pictail expansion ports board) with PIC32MX360F512L PIM.
I want to do a simple debug of an LED blink(edited from the LED blinking.c from the example folder). The program works and LED's Blink in release mode but not in debug mode. Here's my steps below:

1. In project settings I set Build/debugger type to ICD Debug and mikro ICD.
2. In configuration bits Iv set the IEC/ICD comm Channel to the 1 im using which is the ICE uses PGC1/PGD1 pins
(RB1/RB0)
3.ICE debugger enabled in config bits.
4.My |MCLR| from the mikroProg is connect to the |MCLR| labeled on the PICtail board
5.My oscilator is set on external clock at 8.000Mhz
6. When I press Start Debugger it gives the following error:


Error in call to device driver
The handle is invalid


Then mikroc pro pic32 gives the next error violation:

Access violation at address 067D9CEC in module 'mikroEDLL.dll' . Read of address 00008D5C

7. Then I press start debugger again then gives the following error:

mikroICD:
-Error Starting Debugger
-Missing ICD communication.

8. I have reinstalled the drivers for MikroProg suite from the DVD and restarted and stil same problem.

9. Next iv tried changing the Primary oscillator Configuration in config bits menu and selected XT instead of External oscillator, programmed it and then pressed Start Debugger.
It went into debug mode, watch window disappears, I cant step into anything and breakpoints dont work. The rest of this config bits are on default besides the 1 iv mentioned in step 2 above

Please advice on a solution.

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Mikro Prog suite ICD not going in debug mode for PIC 32

#2 Post by janko.kaljevic » 24 Aug 2011 15:36

Hello,

I have successfully started ICD debugger on PIC32MX360F256L with mikroProg.
Config bits were set as you indicated and everything works fine.

Please check connection again because, from this point of view ICD debugger should work.

Best regards.

reigngt09
Posts: 2
Joined: 05 Aug 2011 15:34

Re: Mikro Prog suite ICD not going in debug mode for PIC 32

#3 Post by reigngt09 » 24 Aug 2011 21:25

I will try that, but shouldnt the debugger work if the release program works? By the way which version of Mikroc are you using?

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Mikro Prog suite ICD not going in debug mode for PIC 32

#4 Post by janko.kaljevic » 25 Aug 2011 16:31

Hello,

I am using latest mikroC PRO for PIC32 v1.80 which can be downloaded here:
http://www.mikroe.com/eng/products/view ... for-pic32/

Please can you post here your hex file so we can inspect it.

Best regards.

matrix
Posts: 203
Joined: 26 Jan 2006 07:21
Location: Bulgaria
Contact:

Re: Mikro Prog suite ICD not going in debug mode for PIC 32

#5 Post by matrix » 26 Aug 2011 08:01

When I get my LV32MX v6 I try the debugger too. There were the same problem. Now, it's working. But I don't know exactly how this happens...

[I'm using MP v1.80]

Post Reply

Return to “mikroC Wish List”