Tomas Venek writes:


    Tomas> Hi



    Tomas> does your firmware set a sleep mode?



No, I don't believe so. (The flash was programmed with one of Atmel's ASF 
(Atmel Software Framework) example application.)



    Tomas> You can try proposed changes

    Tomas> http://openocd.zylin.com/2778

    Tomas> http://openocd.zylin.com/2606



Thanks, I managed to apply these patches to my local build and rebuilt via 
"make; sudo make install".



    Tomas> Check if SRST is connected to RESETN and configure

    Tomas>    reset_config srst_only

    Tomas> and you should be able regain debug control after

    Tomas>    reset halt



I'm not sure about SRST; I'll have to see if I can locate a schematic for 
Atmel's SAMD20 Xplained Pro evaluation board (the one I'm using at the moment.)



Regarding "reset_config srst_only", I found the following inside of 
at91samdXX.cfg:



    reset_config srst_gates_jtag



I changed this to read "reset_config srst_only" and tried running openocd 
again, without successfully connecting.



Do I have to change "cortex_m reset_config" as well to use "srst_only"?



(P.S. sorry about the long disclaimer at the end of this message; 
unfortunately, our email system automatically adds it and I cannot disable 
it...)


--------

The information contained in this email message, including any attachments or 
links to documents, may include privileged, confidential and/or inside 
information and is intended only for use of the individual or entity named 
above. If the reader of this message is not the intended recipient, or the 
employee or agent responsible to deliver it to the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited. If you have received this communication 
in error, please immediately notify the sender and destroy the original 
message. Thank you.
------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to