On 03/29/2012 05:02 PM, Uhrheber wrote: > On 29.03.2012 11:38, salvador wrote: > >> adapter_khz 500 > It works now! > The above statement was the problem. > I had to go down to 300kHz to make it work. > At higher frequencies, I get the errors I described before (Error: mini > program did not return to start > Error: timed out while waiting for target halted). > > I don't know what's the cause of this. > Ok, it's a prototype board without ground plane, but the wires between > adapter > and PIC are very short, and the PicoTAP is directly plugged to the > board, without any > cable. > > Nevertheless, it is not perfectly stable. > When I erase the flash and write it again, sometimes it hangs. > I have then to restart OOCD and do it again. Sorry no idea from your hardware, but perhaps this help:
Put a bridge between Vss pins. Solder some ceramic capacitor, 100nF or 220nF, from Vdd and Vcap to that bridge, as short as you can. Put a low value resistor, 470 to 1000 Ohm, from /MCLR pin to Vdd. At Vcap i put 10uF/16V tantalum capacitor in parallel with a 100nF ceramic SMD close to the pins of the chip. It should work much faster. My hardware really don't works at 500Khz, with "measure_clk" command it shows a value of 366Khz, close to what i can see in my oscillospe. Thanks Salvador. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
