Hi my first post to the forum. Trying to move to Visual Studio/Visual Micro with JTAG/SWD debugging support for Cortex M0 and ESP32 family. I previously just used Visual studio and the arduino IDE for a Pololu A-Star 32U4 project.
I posted this over at the Adafruit forum but have had no response. I have effectively bricked two of the Feather M0's because Win 7 will not load a driver for some reason described in the last post to the thread.
Two Feather M0's not being recognized by Win7 https://forums.adafruit.com/viewtopic.php?f=24&t=180404 So while I want to do JTAG debugging (as I'm used to Rowley Crossconenct for ARM), I'm also trying to salvage something from these two Feather to figure out what happened. My hope is the issues are related to Win7 virtual com port USB drives and the J-Link will avoid that all together.
I'm using a Win7 environment using Dell Precision 490 Xenon desktop platform (I also have a very similar Dell Precision M6500 laptop). The feathers have been wired according to the instruction at Adafruit for SDW. I have uploaded the latest from all as described below:
Arduino 1.8.15
Visual Micro - Release 21.06.06.0 - 6th June 2021 - VS
J-Link V7.22b Windows Installer
2017-2019, AS7 Microsoft Visual Studio Community 2019
Version 16.0.1
Arduino IDE for Visual Studio by Visual Micro 19.0
Visual Micro is an Arduino Compatible IDE for Visual Studio 2017-2019.
I confirmed operation of the Segger using Crossworks on an old application. Then I used Zadig to ovewrite the Segger USB drive to WinUSB v6.1.7600.16385.
The verbose VS output is captured in the attached text file.
The first error is an NV lock error which waterfalls into what amount to a failure to program the device.
Error: SAMD: NVM lock error
Error: Failed to erase row containing 00000000
Error: SAMD: failed to erase sector 0 at 0x00000000
Error: failed erasing sectors 0 to 81
embedded:startup.tcl:510: Error: ** Programming Failed **
Is overwriting the SAMD boot loader going to help this?
https://learn.adafruit.com/how-to-program-samd-bootloaders?view=all#flashing-a-s P.S I do not seem to be able to attach the compiler output text file. Will email it.
I cross-posted these results to the Adafruit forum thread.
https://forums.adafruit.com/viewtopic.php?f=24&t=180404&p=878130#p878130