DSPIC33EP512MU810 debug problem

General discussion on mikroProg™ programmer and debugger and mikroProg Suite software as well.
Author
Message
tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

DSPIC33EP512MU810 debug problem

#1 Post by tyzanu » 27 Aug 2013 15:59

Using MCU card v7... (Windows XP Professional + mikroC PRO for dsPIC 6.0.0)
program with mikroprog for pic for debuging, next start debuger and after 15-20 minutes give this errors from jpg
I'm try with VCC 3.3v mikroprog for pic and VCC external stabilizer 3.3v and same problem, what is case?
Connections identical mikroprog for pic manual...
In windows 7 running debug 1-2 hours...
Attachments
unknown.JPG
unknown.JPG (5.21 KiB) Viewed 7454 times
violation.JPG
violation.JPG (8.11 KiB) Viewed 7454 times

User avatar
milos.vicentijevic
Posts: 965
Joined: 23 Apr 2013 08:09

Re: DSPIC33EP512MU810 debug problem

#2 Post by milos.vicentijevic » 28 Aug 2013 13:00

Hello,

which version of mikroProg Suit and which drivers do you use?

Did debugger work first 15-20min ? Does it happen with any program or only specific one?

Please post schematics of connection between mikroProg and your device, and please check voltage level when error appears.

You might try to change usb port and usb cable and see what is going to happen. Also, you can check have you selected right channel for communication.

Best Regards,
Milos Vicentijevic

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#3 Post by tyzanu » 28 Aug 2013 13:14

Cable and channel I changed, + computer changed, version mikroProg Suite For PIC V2.28
Try with another program and back informations...
Attachments
FIRM.JPG
FIRM.JPG (22.29 KiB) Viewed 7429 times

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#4 Post by tyzanu » 29 Aug 2013 08:30

I try sample code in debugging mode but same error ('Acces Violation at adress......')

int ii = 0;
void main() {
// Setting output frequency to 140MHz
PLLFBD = 70; // PLL multiplier M=70
CLKDIV = 0x0000; // PLL prescaler N1=2, PLL postscaler N2=2
ANSELA = 0x00; // Convert all I/O pins to digital
ANSELB = 0x00;
ANSELC = 0x00;
ANSELD = 0x00;
ANSELE = 0x00;
ANSELG = 0x00;
while(1)
{
ii++;
delay_ms(3000);
}//while1
}

In release mode any code running ok after 12 hours running...on the same hard.
I removed uVGA-III but nothing same error...
I try to only power on the programmer result same error, I try to only power external source (+3.3v) but same error...
Attachments
SCH.JPG
SCH.JPG (172.6 KiB) Viewed 7422 times

User avatar
milos.vicentijevic
Posts: 965
Joined: 23 Apr 2013 08:09

Re: DSPIC33EP512MU810 debug problem

#5 Post by milos.vicentijevic » 29 Aug 2013 12:28

Hello,

MCLR pin should be on 3.3V. Did it work at all?
Have you checked voltage level on MCU-MCLR pin?

Best Regards,
Milos Vicentijevic

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#6 Post by tyzanu » 29 Aug 2013 12:45

Mclr moved to +3,3v but nothing, same error, MCLR pin is +2,86v...

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#7 Post by tyzanu » 29 Aug 2013 13:16

Sometimes when pause debug get me error:Unknown Error:(-8).
Power source: Mikroprog for pic
I put osciloscope on MCLR pin, and low voltage that jpg (gradually decreases), after get error:Addres Violation.... and MCLR pin is 0 voltage
Attachments
mkp.JPG
mkp.JPG (111.63 KiB) Viewed 7412 times
oscs.JPG
oscs.JPG (81.33 KiB) Viewed 7412 times

User avatar
milos.vicentijevic
Posts: 965
Joined: 23 Apr 2013 08:09

Re: DSPIC33EP512MU810 debug problem

#8 Post by milos.vicentijevic » 30 Aug 2013 14:24

Hello,

you might try to use shorter wires if possible. I forgot to mention last time that mikroProg is very sensitive to program line length.

So, when you pause your code and leave debugger paused it happens then only or it happens randomly ?

Best Regards,
Milos Vicentijevic

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#9 Post by tyzanu » 30 Aug 2013 15:07

random happens, but after approximative 8-20 try RUN/PAUSE DEBUG.
I try thicker thread its ok?? Or necessarily shorter wire????I'll try short wire, and post replay

User avatar
milos.vicentijevic
Posts: 965
Joined: 23 Apr 2013 08:09

Re: DSPIC33EP512MU810 debug problem

#10 Post by milos.vicentijevic » 02 Sep 2013 12:54

Hello,

does it work with shorter wires?

Best Regards,
Milos Vicentijevic

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#11 Post by tyzanu » 02 Sep 2013 17:06

Please wait 3-4 days because they are at an exhibition this project in Relase Mode and after end exhibition try shorter wires, and post replay, Thanks for time, and excuse-me for broken english...

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#12 Post by tyzanu » 06 Sep 2013 10:10

I put thick and short wires, but nothing, same error "Unknown Error: (-8)" what to try???
Attachments
xxxx.JPG
xxxx.JPG (250.62 KiB) Viewed 7242 times

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#13 Post by tyzanu » 09 Sep 2013 06:58

I try 2 mikroprog for pic but same error..

tyzanu
Posts: 182
Joined: 21 Aug 2011 17:27
Contact:

Re: DSPIC33EP512MU810 debug problem

#14 Post by tyzanu » 12 Sep 2013 09:18

Put breakpoint and RUN, after stop get this error sometimes
Attachments
scope.JPG
scope.JPG (6.38 KiB) Viewed 7126 times

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: DSPIC33EP512MU810 debug problem

#15 Post by marina.petrovic » 12 Sep 2013 13:54

Hi,

Please, can you send me your project/code?

You can open the ticket and send your project via ticket, so I can try to find the source of the problem.

Best regards,
Marina

Post Reply

Return to “mikroProg™ programmer and debugger”