Hi there!
I´ve been using the arduino Mega 2560 for some weeks now, mostly during my holidays. I wanted to learn to program with it. I´ve been using a notebook with Windows 7 (32) and bluetooth capability.
It worked just fine.
Now, at my home, I wanted to install it in my desk PC. My desk PC runs Windows 7 (64) and has bluetooth capabilities.
Now, after installing it, I´ve have some problems to set the COM4 port (it was greyed out at first), but now the PC recognizes the Arduino.
I´ve added the bluetooth antenna to start testing again, and I can´t get the code to be uploaded to the Arduino.
This is the error:
Binary sketch size: 5.308 bytes (of a 258.048 byte maximum) - 2% used
avrdude: ser_open(): can't open device "\\.\COM4": Access is denied.
avrdude: ser_drain(): read error: The handle is invalid.
processing.app.debug.RunnerException: Problema subiendo a la placa. Visita http://www.arduino.cc/en/Guide/Troubleshooting#upload para sugerencias.
at processing.app.debug.BasicUploader.uploadUsingPreferences(BasicUploader.java:126)
at processing.app.Sketch.upload(Sketch.java:1649)
at processing.app.Sketch.exportApplet(Sketch.java:1608)
at processing.app.Sketch.exportApplet(Sketch.java:1580)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2408)
at java.lang.Thread.run(Thread.java:619)
I´ve read all suggestions, and everything seems fine: The COM port is there, it seems to work ok.
The weird thing is that at first, when it was greyed out, all COM ports appeared "occupied" up until the 256, which wasn´t being recognized by the arduino. So I´ve changed it to COM4, and it worked: The COM port selection wasn´t greyed out, and I´ve selected the COM4. I´ve then uploaded the blink example, and it worked.
After adding the antenna, everything went wrong, because the error appeared. I´ve tried resetting the arduino, and it worked only once.
I´ve tryed uploading with the antenna connnected and disconnected.
I´ve read that there are some issues with win64, so i´ve followed all instructions available about how to install arduino there.
I´ve read within the error that "COM4": Access is denied." How may I "open" it, when it´s already open and it worked?
Any ideas on what could be wrong? I can´t disable bluetooth in this PC, because the mouse uses it!
Thanks for your insight!!!
Rosamunda