CAUSE:
once upon a time when i was noob in Arduino i tried to connect my Arduino and computer with the help of Processing and tried to change the color of the display screen with the help of potentiometer.
In this process something went wrong and the display on the screen started to flicker. Ignoring that i tried again at that time my led on Rx pin started glowing continuously and then kept quite after sometime i was able to connect the Arduino but couldn't write to it. Every time i tried to write to it,it gave the same error with msg (avrdude: ser_open(): can't set com-state for "\\.\COM6").
Noticing that i tried to solve it in many ways:
1. Pressing reset with different time intervals
2. Connecting to different ports
3. Connecting to different computers
4. Checking connectivity
But nothing worked so i thought that i have shorted the board and have to buy one. Then i thought if my Arduino was shorted then it shouldn't be able to be connected my computer as the controller or some circuit got shorted but it was connecting so then i got the idea how to resolve it.
SOLVED:
- Reset the Arduino by pressing reset button.
- Uninstall all the Arduino compiler files including the drivers from the device manager of your computer. PLZ note the com port of Arduino in the device manager.
- Connect and check whether the Arduino is shown in device manager if shown then uninstall it manually
- Re install the Arduino compiler and hook up Arduino to it.
- Re install all the Drivers
- At this time you will see that the com port had changed if it didnt then change it manually from device manager
- Cross your fingers and write the blink code to.
- Now this should work properly
ANALYSIS:
what i understood is that the msg goes something like this the device cant access the files relate to Arduino(avrxxxx)which is located in the com(xxx) port and the port status cant be updated with the current new values so resolve it manually.
Note: this should work in most cases including varies other errors which prevent from writing to the Arduino board.
3 comments:
Thanks! Just reinstalling IDE from microsoft store made it.
This solved my problem - my UNO was a gift so didn't realise not standard chipset
Thank you so much!
Post a Comment