Quantcast
Channel: Target Halted without breakpoint

Target Halted without breakpoint (MPaulHolmes)

$
0
0
I'm using MPLab 8.83 with the pickit 3 and a dsPIC30F4011 at 30MIPs.  With one power supply, it seems to work ok in debug mode.  With another, it says "debugger halted' or something like that at random times.  Is the pickit3 OK for up to 30 MIPs debugging?  Could it be noise from the power supply that could keep making it halt?
 
edit:  Actually, with the "good" power supply, sometimes it halts at a breakpoint that I didn't add, but it's not visible in the C.  Only when I look in the assembly does the hidden breakpoint (which I didn't add) show up.  That's fairly rare though.  The halting on the "bad" supply has no breakpoint anywhere in the assembly language listing.

Re: Target Halted without breakpoint (RISC)

$
0
0
Hi,
How did you decouple your power supply ?
Are all power supply pins connected ?
Did you connect Avdd,  AVss to power supply pins (they must not be left open even if ADC is not used) ?
Regards
 

Re: Target Halted without breakpoint (drazen)

$
0
0
I'm not sure is PICKit capable of running on 30MHz. If breakpoins are set by themself....
Debugger is always problematic cause of cabling and connector. Little disturbance and debugger halts. Did you tried running without debugger?
Without debugger PIC must reset (if your code does not run in loop) and RCON will say why.
Try also running on lowe freq, eg 16MHz.
In my case one of big problems was Vcap. It must be 10uF 16V tantalum or ceramic. Hi quality one!

Re: Target Halted without breakpoint (MPaulHolmes)

$
0
0
I was using 4.7uF caps, but added some 0.01uF caps to go with it.  I looked at the noise on the 5v line, and every 1/125,000 sec, there's a +/- 0.2v oscillation with period 10nS that damps to nothing in 30nS.  I'm pretty sure that's from 6 isolated supplies I have on a 24v line.  The 24v line is feeding the input of a 7805 replacement part, and I think making it through.  When I added a 0.01uF cap at a test point of +5v and gnd, the above sine waves went down to +/- 0.1v.  That didn't help the debugger, but I feel better about it now.
 
It works fine in release mode.  I'll try a lower frequency too. AVcc also has a 4.7uF cap and is connected to +5v and ground.  I'll also read up on RCON.  Thank you for the suggestions!

Target Halted without breakpoint (MPaulHolmes)

$
0
0
I'm using MPLab 8.83 with the pickit 3 and a dsPIC30F4011 at 30MIPs.  With one power supply, it seems to work ok in debug mode.  With another, it says "debugger halted' or something like that at random times.  Is the pickit3 OK for up to 30 MIPs debugging?  Could it be noise from the power supply that could keep making it halt?
 
edit:  Actually, with the "good" power supply, sometimes it halts at a breakpoint that I didn't add, but it's not visible in the C.  Only when I look in the assembly does the hidden breakpoint (which I didn't add) show up.  That's fairly rare though.  The halting on the "bad" supply has no breakpoint anywhere in the assembly language listing.

Re: Target Halted without breakpoint (RISC)

$
0
0
Hi,
How did you decouple your power supply ?
Are all power supply pins connected ?
Did you connect Avdd,  AVss to power supply pins (they must not be left open even if ADC is not used) ?
Regards
 

Re: Target Halted without breakpoint (drazen)

$
0
0
I'm not sure is PICKit capable of running on 30MHz. If breakpoins are set by themself....
Debugger is always problematic cause of cabling and connector. Little disturbance and debugger halts. Did you tried running without debugger?
Without debugger PIC must reset (if your code does not run in loop) and RCON will say why.
Try also running on lowe freq, eg 16MHz.
In my case one of big problems was Vcap. It must be 10uF 16V tantalum or ceramic. Hi quality one!

Re: Target Halted without breakpoint (MPaulHolmes)

$
0
0
I was using 4.7uF caps, but added some 0.01uF caps to go with it.  I looked at the noise on the 5v line, and every 1/125,000 sec, there's a +/- 0.2v oscillation with period 10nS that damps to nothing in 30nS.  I'm pretty sure that's from 6 isolated supplies I have on a 24v line.  The 24v line is feeding the input of a 7805 replacement part, and I think making it through.  When I added a 0.01uF cap at a test point of +5v and gnd, the above sine waves went down to +/- 0.1v.  That didn't help the debugger, but I feel better about it now.
 
It works fine in release mode.  I'll try a lower frequency too. AVcc also has a 4.7uF cap and is connected to +5v and ground.  I'll also read up on RCON.  Thank you for the suggestions!



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>