I'm running under Win 7 64 bit. I can't get Serial.print to work.
I've found a few similar posts, but no solutions.
I take the blink program and add to setup:
Serial.begin(9600);
and I add to the loop
Serial.println("hello there");
The program uploads and starts running. I can see the tx line blink, as expected, just before the pin 13 LED blinks on. But I'm not receiving any characters in the serial monitor. After 7 blinks of the tx line, it stops blinking. Pin 13 led keeps on blinking very contentedly.
Seems like the serial print is not getting across to my computer and the transmit buffer on the board must be filling up. I've played around with various settings for my com port (com4) with no success.
I'm using the most recent version of the FDTI driver downloaded directly from their site.
I suspect that the problem is with my com4 port but I can't seem to get anywhere with it.
But I can't explain how or why. I recalled a recent problem I had with a video capture driver. It solved itself after several reboots of Win 7 with and without the device plugged in. I applied the same technique with the arduino and now everything works!
My "hello world" example doesn't work. When I set the serial monitor to 9600. and reset my mega I should get a line printed right? I have a different board that can serial.print to the monitor. I can load other programs on my mega through the usb to serial port.
Should I just reboot a few times and blame the software?
I had avr-gcc-c++-4.5.0 and avr-gcc-4.5.0 which came with my Fedora 13 install automatically. I just removed those and installed the version from Fedora 10 avr-gcc-4.3.3 and avr-gcc-c++-4.3.3 and now I can get serial output! YAY! "