Hi I am just guessing here but it can an issue with the timing of the AHB bus and running from flash at 50MHz. The SWLDP overrun is received through the JTAG interface, so it seems JTAG is working. SWDLP overruns are not JTAG problems, they are when the debug unit on th CM3 receives debug commands faster than it can process them.
The overrun errors typically occurs when OpenOCD tries to access memory mapped debug registers while the processor is running. Then the running processor and the debug unit are contending for the AHB bus. As I can understand things, when the processor is halted then OpenOcd can write to flash memory. Can the processor be single stepped ? Can you put a breakpoint after the pll setting code and run to the breakpoint and then talk to the processor with OpenOCD ? Regards Magnus Spen wrote: >>>> I'm not too familiar with that code or the problem >>>> >> w/PLL/clocks that >> >>>> you are seing, but I modified it to wait 1000ms rather >>>> >> than try 100 >> >>>> times... >>>> >>>> Seems a tad more robust to me. >>>> >>>> > > This is way too long a timeout. > Probably 50ms-100ms is more suitable, otherwise openocd may appear to be > locked up. > > This does need looking into further as when the cortex is in low power modes > it would be good if the jtag clock was lowered to suit. > > >> Also try w/RCLK. RCLK is useful for the case when frequencies >> are changing on the target and in some cases the *only* way >> you can get things to work reliably. >> >> > > cortex does not support RCLK, and is not recommended by arm todo so. > If the jtag clock is to fast you will receive a SWJ-DP OVERRUN. > > The best overall solution is to support SWD rather than jtag as the error > reporting is much better from the debug interface. > > Cheers > Spen > > _______________________________________________ > Openocd-development mailing list > Openocd-development@lists.berlios.de > https://lists.berlios.de/mailman/listinfo/openocd-development > _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development