I am using Arduino with RAMPS board for my Prusa 3D Printer. I used windows 7 professional as my OS and I managed to upload the Marlin v6 firmware to the arduino board. Following which, I connected only the power source, X and Y motor to the RAMPS. I tried both the Repetier Host 1.06 and Pronterface to move the Y-axis and X-axis by 1mm just to test the connection. I was able to send the first 2 command successfully but after that, the software stop to respond to any commands to move the X or Y-axis. The number of commands waiting also start to pile up. When I restart the software, and replugin the USB port, Windows gave me this error : "One of the USB devices attached to this computer has malfunctioned and Windows does not recognize it. For assistance in solving this problem, click this message". I will need to restart the computer in order for windows to recognize the connection again.
I tried using putty to send g-code and the same thing happens. After typing the 3rd g-code command, an error "Error writing to serial port" pops up. I am suspecting that there is a buffer overflow or somehow the connection is working poorly. It used to work properly before but recently it suddenly started to behave in this manner. Any suggestions on what I can do to fix this ?