openocd -f interface/cmsis-dap.cfg -f target/at91samdXX.cfg -c cmsis_dap_init_samd_cold_plug -c init -c "at91samd chip-erase"

On 08.06.2017 17:34, William Hanna wrote:
Ok, swapped over to cmsis-dap adapter and still no luck.
https://pastebin.com/6k6ULseG

Thanks for you help.


On Jun 8, 2017, at 12:07 PM, Tomas Vanek <[email protected] <mailto:[email protected]>> wrote:

The cold-plug solution (4044) is for CMSIS-DAP adapter only.
No wonder it does not work with J-Link.

On 08.06.2017 16:09, William Hanna wrote:
Tom,
I read your post, which I somehow missed when searching for a solution, and pulled the latest master. Changed atsamd91.c and cmsis_dap_usb.c to patch versions (4043 and 4044) and installed.

I got the following error:
https://pastebin.com/7L6i1TqW

As I understand it the fix merged into the git master is for the DSU. Other patches are required for SAMD CPU extended reset.

William



On Jun 8, 2017, at 9:54 AM, Tomas Vanek <[email protected]> wrote:

On 08.06.2017 13:51, William Hanna wrote:
Has anyone had any success with using openocd to erase ATSAMDA1 or ATSAMC21 devices which have the security enabled?

The command:'at91samd chip-erase’ says it will erase the device when security enabled. However when the security is set openocd doesn’t appear to be able to run the ‘init’ command on the device successfully.

Please see
https://sourceforge.net/p/openocd/mailman/message/35704580/

http://openocd.zylin.com/4043 is already merged  in git master.

Tom






------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to