Thanks for the patch. Unfortunately we are not able to review and accept patches which are not submitted to https://review.openocd.org/ See https://openocd.org/doc/doxygen/html/patchguide.html for details.
--- ** [tickets:#372] at91samd.c should check NVM READY flag** **Status:** new **Milestone:** 0.11.0 **Created:** Mon Dec 05, 2022 02:38 AM UTC by dan stahlke **Last Updated:** Mon Dec 05, 2022 02:38 AM UTC **Owner:** nobody **Attachments:** - [0001-at91samd-wait-for-nvm-ready.patch](https://sourceforge.net/p/openocd/tickets/372/attachment/0001-at91samd-wait-for-nvm-ready.patch) (1.9 kB; text/x-patch) On the master branch, I am able to program SAMD21J17A but not SAMD21J17D. I root caused this as commands being sent faster than the NVM system can keep up (presumably the later silicon revision has slower NVM erase). The solution is to wait for INTFLAG.READY after a command is issued. A patch is attached, styled after atsame5.c. --- Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/openocd/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.