Okay, I got the patch submitted. https://review.openocd.org/c/openocd/+/7391/2
--- ** [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:** Wed Dec 07, 2022 03:03 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.