I am very new to the arduino world. I received my arduino duemilanove ATmega328 some days ago.
I hava a new macbook pro, core2duo 3.06 ghz and I am running windows via bootcamp. the arduino software version is 0017.
I can program the arduino in osx, everything is fine. but since I run windows, I can select the board and the serial port, but I get a lot of error messages when I want to upload any script to the board like "error: stray '\16' in program".
I searched the web and I heard about the problem that arduino might have with the latest mac processors...
I should be lucky that it works under osx, but I need it in windows for connecting with rhinoceros and grasshopper...
C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\5' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\26' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\7' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\2' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: expected '=', ',', ';', 'asm' or 'attribute' before 'OS' C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\2' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\16' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\260' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\2' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\16' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\342' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\1' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\36' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\232' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\311' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\377' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\16' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\342' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\230' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: expected identifier or '(' before '&' token C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\1' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\230' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\25' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1:158: error: invalid suffix "b1caae7" on integer constant C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: expected identifier or '(' before numeric constant C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: expected identifier or '(' before '|' token C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\1' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\1' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\36' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\1' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\1' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\36' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\34' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\36' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\377' in program C:\arduino\hardware\cores\arduino._pins_arduino.c:1: error: stray '\377' in program
the windows version I am running is XP professional, 2002, Service Pack 2.
It's not the board. It appears that the problem is a corrupt install of the Arduino IDE. Did you look at the file that the compiler is complaining about?
I reinstalled the 0017 version, same problem. I installed 0016, it didn`t even start. so again 0017, I looked at this file and it is there twice.
any ideas?
I had the same exact problem. I downloaded the windows version of the arduino software on my MAC because my windows machine wasn't hooked up to the internet at the time. I then transfered it to the windows machine with a usb flash drive. I got the same error message as you. I tried the same procedure a few times, always with the same result.
I then got the internet working again on my windows machine and directly downloaded the software to it. For some reason that worked. I can't imagine why it wouldn't have worked the other way. I'm not enough of a computer guru to speculate what my MAC might be doing to the windows files in a straight download. All I know is that a direct down load to windows solved the problem. I'm not sure if this will work for you with bootcamp, but it might be worth a shot.
it looks like you have different character encodings of the source files (e.g. UTF-8, UTF-16, MBCS) and what the compiler expects.
Can you please create a new sketch under Windows and copy the code from your own posting (copy from the screen out of the browser window, NOT using file copy!). Does this work?