Trying to upload sketch via srial (java.io.IOExcep

Hi there,

I`m trying to upload a sketch with a serial cable, but then i get the following error:

java.io.IOException: CreateProcess: “C:\Arduino IDE\hardware/tools/avr/bin/avrdude” “-CC:\Arduino IDE\hardware/tools/avr/etc/avrdude.conf” -q -q -pm8 -cstk500v1 -P\.\COM1 -b19200 -D “-Uflash:w:C:\Arduino IDE\examples\Digital\Blink\applet\Blink.hex:i” error=193

at java.lang.Win32Process.create(Native Method)

at java.lang.Win32Process.(Unknown Source)

at java.lang.Runtime.execInternal(Native Method)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at java.lang.Runtime.exec(Unknown Source)

at processing.app.Uploader.executeUploadCommand(Uploader.java:123)

at processing.app.AvrdudeUploader.avrdude(AvrdudeUploader.java:170)

at processing.app.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:76)

at processing.app.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:48)

at processing.app.Sketch.upload(Sketch.java:1632)

at processing.app.Sketch.exportApplet(Sketch.java:1701)

at processing.app.Editor$41.run(Editor.java:2004)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Cant it connect to my arduino or is ti something else. I followed the schematic of the arduino rs232 very varefully, and i can upload via parralel.

Thanks in advance,

Collin

Does nobody recognize it?

Does this file exist: C:\Arduino IDE\hardware/tools/avr/bin/avrdude?

–Phil.

Yes that file exists. Thanks for your help.

I tried the following command in the commandline: avrdude -Cavrdude.conf -v -v -v -v -pm8 -cstk500v1 -P\.\COM1 -b19200 -D -Uflash:w:C:\Blink.hex:i

This results in the following: avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.c

System wide configuration file is "avrdude.conf"

Using Port : \.\COM1 Using Programmer : stk500v1 Overriding Baud Rate : 19200 avrdude: ser_open(): setting dtr avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Recv: avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude: Send: Q [51] [20] avrdude: Recv: avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done. Thank you.

C:\Arduino IDE\hardware\tools\avr\bin>

This error is due to missing extension on the executable. The correct call should be "...\avrdude.exe". The error is actually rarely thrown unless in the same directory there is a file called avrdude (with no extension).

As far as I can tell in that directory there should only be two files: avrdude.exe and avrdude.conf.

Can you check what files are there in the hardware/tools directory?