Howdy,
I've just had an interesting time trying to figure out why my board wasn't doing what I expected. After poking around I found that the code shown by the IDE wasn't the same code that appeared in the source .cpp file in the Applet folder. I've been doing "Save As" in Arduino004 and it seems that the IDE is letting me add/edit code, but what's getting compiled is the code from before the "Save As". Has anyone else seen this? I'm running on Mac OS X.
thanks,
darren
I've tried saving the sketch to a new directory. Changing the sketch's name. Changing the build directory. Creating a new sketch from scratch and copy/pasting in the code. Arduiino is going through the normal process of compiling and uploading, but for some reason it's still uploading the executable from an older version of the program. Very odd.
What are the differences between the two versions? Arduino does perform some preprocessing on your sketch before compiling and uploading it (Arduino Playground - BuildProcess) - is that what you're seeing?
Sorry, I mean that they're COMPLETELY different. As in, Arduino is uploading a version of the program that is several revisions previous to the source that I'm editing. The old and new versions have serial output so I can verify that the program is running, but its output is not possible based on the source code that's currently being shown by the IDE. After modifying and saving my sketch, and finally re-installing Arduino004, the source and compiled code started agreeing again. I'm starting to wonder if it has something to do with code size, since as I near the 7K limit, it behaves more strangely.