Show Posts
Pages: [1] 2 3
1  Using Arduino / Installation & Troubleshooting / Re: Unable to see arduino using Debian Squeeze on: May 30, 2011, 06:01:30 am
Here it is:


[  302.608028] usb 3-1: new full speed USB device using uhci_hcd and address 2
[  302.806164] usb 3-1: New USB device found, idVendor=2341, idProduct=0001
[  302.806171] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[  302.806175] usb 3-1: Product: Arduino Uno
[  302.806178] usb 3-1: Manufacturer: Arduino (www.arduino.cc)
[  302.806181] usb 3-1: SerialNumber: 64932343738351C09091
[  302.807647] usb 3-1: configuration #1 chosen from 1 choice
[  302.887670] cdc_acm 3-1:1.0: ttyACM0: USB ACM device
[  302.890641] usbcore: registered new interface driver cdc_acm
[  302.891677] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters

At this point I can 'see' ttyACM0 in the IDE, but as soon as I attempt to upload a sketch it disappears from the IDE, leaving ttyS0 as the only serial port, which doesn't work.

TIA


2  Using Arduino / Installation & Troubleshooting / Unable to see arduino using Debian Squeeze on: May 27, 2011, 02:34:46 pm
I'm using Debian Squeeze and an Arduino Uno. I have installed the IDE version 0022 and I connect the Uno to my PC using my printer cable (so I am confident that the USB connection works), but the IDE can often only see /dev/ttys0. Sometimes it can see /dev/ACM0, but not always. However, even when I can select that port, I cannot upload a sketch - I always get an error message:

avrdude: stk500_recv(): programmer is not responding

I can see that the necessary USB port exists:


 ls /dev/tty*
<snip>...  /dev/ttyACM0 /dev/tty13....  <snip>

but the IDE usually doesn't seem to be able to see it. Sometimes though I can select the ACM0 port in the iDE, but that still doesn't solve the uploading problem.

Does any one have any guidance on what I must do to fix this?

TIA

3  Development / Suggestions for the Arduino Project / Re: if(a=b) is not if(a==b) could IDE check this b4 upload? on: March 01, 2011, 07:47:43 am
Is not cancelling all warnings akin to clapping your hands over your ears, screwing your eyes tightly shut, and loudly chanting "la la la la la...."?

:-)
4  Development / Suggestions for the Arduino Project / Re: if(a=b) is not if(a==b) could IDE check this b4 upload? on: February 28, 2011, 06:20:25 am
Probably just a lot easier to put a posit-it note on your screen, reminding you to watch for
if (x=y)

if your code  !

5  Development / Suggestions for the Arduino Project / Re: if(a=b) is not if(a==b) could IDE check this b4 upload? on: February 23, 2011, 09:12:03 am
Understood - a case of the dog that didn't bark :-)
I didn't realise that CHAR_SPACE was a #define, or I would have twigged.
6  Development / Suggestions for the Arduino Project / Re: if(a=b) is not if(a==b) could IDE check this b4 upload? on: February 23, 2011, 03:32:42 am
True, but it could be

Code:
if (CHAR_SPACE == cmd_buffer[i])

______
Rob


How would
Code:
if (CHAR_SPACE = cmd_buffer[i])
be caught?
7  Development / Suggestions for the Arduino Project / Re: More customizable IDE? on: February 23, 2011, 03:30:40 am
Quote
I'm using the latest Arduino IDE, and have found it lacking in only one area:
Only one? You're easily pleased smiley

______
Rob

Only one in the context that the IDE is a simple, free tool to hack with so I don't expect or demand too much of it. If it cost me several thousand notes I would expect a superb piece of software and be grumbling a lot more. I use Visual Studio at work which meets the first criterion, and because it's so poor I grumble a whole lot more about that. No, really, I do!
8  Development / Suggestions for the Arduino Project / Re: USB support in Linux. on: February 23, 2011, 03:26:25 am
RMA?
9  Development / Suggestions for the Arduino Project / Re: USB support in Linux. on: February 22, 2011, 07:45:41 am
Thanks, but that is exactly one of the methods I've tried. No change. My Uno stubbornly refuses to go into DFU mode this way.
10  Using Arduino / Programming Questions / Re: Passing arrays to a function on: February 22, 2011, 07:44:32 am
Cool! I'll remember this one.
11  Development / Suggestions for the Arduino Project / Re: if(a=b) is not if(a==b) could IDE check this b4 upload? on: February 22, 2011, 07:43:16 am
Quote
do it this way if ( 54 == x)
Good point, yet for some reason I never seem to do it. I must get back into the habit.

______
Rob


Except that
 (a) as a good programmer you wouldn't be using magic numbers in expressions, and
 (b) if you are comparing variables it can't help anyway.
12  Development / Suggestions for the Arduino Project / Re: USB support in Linux. on: February 22, 2011, 07:18:15 am
Thanks, but I've tried that. I've tried putting mu Uno into DFU mode using all the methods suggested, without success. I always get the message which tells me it is not in DFU mode.
13  Development / Suggestions for the Arduino Project / Re: re-display serial monitor after upload? on: February 22, 2011, 07:13:06 am
I'd like to see it remain open if I close a sketch and open another, but I wouldn't want it to open automatically when I started the IDE simply because it was open when I last closed the IDE.

Or possibly implement some sketch metadata, such that when a sketch is opened the IDE reverts to the state it was in when a sketch was last closed? That would be nice, and would mean that if the sketch does't use serial communication the monitor will remain closed. Best of both worlds, IMHO.
14  Development / Suggestions for the Arduino Project / Re: if(a=b) is not if(a==b) could IDE check this b4 upload? on: February 21, 2011, 08:55:57 am
Well, C was written to help write an operating system (UNIX), where you are hitting the hardware and want to be able to do pretty much anything. It could be argued that if you are not writing an operating system you shouldn't be using C. I suspect the choice for Arduino was dictated largely by the need for a free, widely understood language/compiler, not because C is the most appropriate language for the job - teaching novices how to program a controller.

And now I'll duck. :-)


15  Using Arduino / Programming Questions / Re: Passing arrays to a function on: February 21, 2011, 08:48:29 am
I'm not a C programmer, but I think I've got it - the #define is a string substitution before the code is compiled, so wherever it ifnds

processArray(a)

it will substitute

processArray_f(a, (sizeof(a)/sizeof(a[0]))

so that main() becomes

main() {
  processArray_f(a, (sizeof(a)/sizeof(a[0]));
}

But is it clever enough to replace "processArray(a1);" with "processArray_f(a1, (sizeof(a1)/sizeof(a1[0]));" ?

Pages: [1] 2 3