From: Angus G. <gu...@pr...> - 2014-12-10 07:46:58
|
On Tue, Dec 09, 2014 at 09:56:16PM -0800, Myles Watson wrote: > Thanks for responding. I need to investigate a little more thoroughly. I > tried holding the reset low manually, and it didn't seem to work. Until > that works, automating it may be overkill :) Fair enough :) For what it's worth, I actually just realised that automating it won't be as hard as I first thought. I somehow thought the STLINK idled SWDCLK high, but it idles low. So if you put a diode between SRST and DIO, SRST can pull DIO low but not drive it high. Then you can use the standard reset_config & reset functions to first enable srst, then issue a reset which will pull SWDIO/RESET low. That's assuming the STLINK isn't driving the DIO line high at that time, I don't think it would be but that's definitely worth checking... Angus |