Hi, All:
Microchip Studio (AKA Atmel Studio 7), latest version, is configured for the STK500 programmer by default, to use COM5 on Windows (I’m using Win 10).
I’m trying to program a test “blink” application on a board with an ATmega328P, using the AVR programmer V2.1. Since it came up as COM ports 16 (serial) and 17 (programming) on my system, in Studio I configured a new version of the STK500 with COM17 (Tools > Add target).
However, when I attempt to program the device, I get a message “failed to open \.\COM5 Error 0x2”
I’ve done plenty of googling, and tried every imaginable menu to wean Microchip Studio from trying to access COM5, without success.
Windows seems to think that COM5 is taken, but COM5 does not show up in Device Manager. I tried renaming COM17 to COM5 using Windows, but that led to the same error message, although now COM5 does show up in Device Manager.
Incidentally, I had no problem connecting to the programmer V2.1 and reading fuses using the original Atmel version of Studio 7, but would like to have the later Microchip version running as well.
Suggestions appreciated!
Solved: uninstalled everything related/reinstalled first the old version of Atmel Studio, configured it for COM17, checked that it was functional, uninstalled it, reinstalled Microchip Studio, and now it sees the programmer on COM17 (and works). If there is a better way of removing an “existing” programming tool (like the ghost of COM5), I have not yet found it.