There’s an interesting thought jbobrow!
A Surface has no reason to have any old serial ports, so I wonder if the IDE is just barfing due to legacy code that assumes you’re using serial instead of USB to connect to the embedded system. You’re right that I’ve selected “COM1” on my main computer, which is nonsense because I’m just on the USB adapter.
I’ll dig around and see if I can sort it out.
On the good news side, I’ve successfully written a rudimentary program and uploaded it! So, yay!
On two unrelated notes:
I’m new to Arduino, so forgive me if this is something I should already know – how often does Loop() get called? Is it on a frequency, or is it basically “while (true) { Loop(); }”?
Also, has anyone had trouble getting stdlib.h to include? I’m going to need malloc, but when I include stdlib it barfs calling ‘extern’ an unqualified id.
EDIT: Okay, I’ve /sort of/ solved problems with including stdlib, but it’s weird. I have to undef abs before the include, because I guess it’s getting defined elsewhere? This works:
#undef abs
#include “stdlib.h”
which is really strange. These are the first 2 lines of my program, so I’m not really sure how I can be accidentally getting abs from somewhere else.
Thanks a ton!
Chris Woods