Hello all I have a small problem that my Arduino Leonardo dosnt want to "accept" code any more. I think I pulled it out while being in the process of uploading. Now I reseve the message -->
avrdude: ser_open(): can't set com-state for "\\.\COM7"
P.S. This is a key stroke injector.
Keep reset pressed on the Leonardo.
Start uploading code.
When the IDE shows the memory statistics, release the reset button.
If that does not work, we need more details.
1)
What is the Leonardo port in device manager before a reset?
2)
What is the Leonardo boot loader port after reset.
3)
In file -> preferences, disable verbose output during compilation and enable verbose output during upload. Next start an upload and when it fails, post the full error message here.
Warning regarding your code: make sure that you always have a means to switch off sending of keys to the PC in your code.
In the ports / manager it sometimes changes from port 7 and port 11. I bought this chip as a Pro micro but when I plugged it in it came up as a Leonardo. And iam unable to reset the chip using the reset pin & ground
error messages :--->>>
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "E:\Desktop\Arduino\Softwear\arduino-1.8.9\hardware\tools\avr/etc/avrdude.conf"
When I reset the Arduino using Ground and RST it goest to com 10 and then changes back to come 11 or com 7
Using Port : COM7
Using Programmer : avr109
Overriding Baud Rate : 57600
avrdude: ser_open(): can't set com-state for "\.\COM7"
avrdude done. Thank you.
An error occurred while uploading the sketch
Its all good now all I had to do is hold reset pin and upload code.