Go Down

Topic: Can't upload to Arduino NG (Read 455 times) previous topic - next topic

brodul

I use gentoo linux with arduino version 0021.

I have the Arduino NG conected to my PC via USB:

Code: [Select]
[ 3171.807540] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0004
[ 3171.807551] ehci_hcd 0000:00:1d.7: GetStatus port:2 status 001803 0  ACK POWER sig=j CSC CONNECT
[ 3171.807559] hub 2-0:1.0: port 2, status 0501, change 0001, 480 Mb/s
[ 3171.911030] hub 2-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x501
[ 3171.962289] ehci_hcd 0000:00:1d.7: port 2 full speed --> companion
[ 3171.962296] ehci_hcd 0000:00:1d.7: GetStatus port:2 status 003801 0  ACK POWER OWNER sig=j CONNECT
[ 3171.962309] usb usb6: wakeup_rh (auto-start)
[ 3171.962317] hub 2-0:1.0: port 2 not reset yet, waiting 50ms
[ 3172.013054] ehci_hcd 0000:00:1d.7: GetStatus port:2 status 003002 0  ACK POWER OWNER sig=se0 CSC
[ 3172.013075] hub 6-0:1.0: state 7 ports 2 chg 0000 evt 0004
[ 3172.013082] uhci_hcd 0000:00:1d.0: port 2 portsc 0093,00
[ 3172.013089] hub 6-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
[ 3172.117048] hub 6-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
[ 3172.219048] usb 6-2: new full speed USB device using uhci_hcd and address 4
[ 3172.339043] usb 6-2: ep0 maxpacket = 8
[ 3172.376351] usb 6-2: default language 0x0409
[ 3172.405352] usb 6-2: udev 4, busnum 6, minor = 643
[ 3172.405356] usb 6-2: New USB device found, idVendor=0403, idProduct=6001
[ 3172.405359] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3172.405361] usb 6-2: Product: FT232R USB UART
[ 3172.405364] usb 6-2: Manufacturer: FTDI
[ 3172.405366] usb 6-2: SerialNumber: A3000X14
[ 3172.405453] usb 6-2: usb_probe_device
[ 3172.405456] usb 6-2: configuration #1 chosen from 1 choice
[ 3172.408359] usb 6-2: adding 6-2:1.0 (config #1, interface 0)
[ 3172.413393] ftdi_sio 6-2:1.0: usb_probe_interface
[ 3172.413397] ftdi_sio 6-2:1.0: usb_probe_interface - got id
[ 3172.413402] ftdi_sio 6-2:1.0: FTDI USB Serial Device converter detected
[ 3172.413425] usb 6-2: Detected FT232RL
[ 3172.413427] usb 6-2: Number of endpoints 2
[ 3172.413429] usb 6-2: Endpoint 1 MaxPacketSize 64
[ 3172.413432] usb 6-2: Endpoint 2 MaxPacketSize 64
[ 3172.413434] usb 6-2: Setting MaxPacketSize 64
[ 3172.414410] usb 6-2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 3172.414434] drivers/usb/core/inode.c: creating file '004'
[ 3172.414457] hub 2-0:1.0: state 7 ports 6 chg 0000 evt 0004
[ 3172.414464] hub 6-0:1.0: state 7 ports 2 chg 0000 evt 0004


The error is:
Code: [Select]
Binary sketch size: 450 bytes (of a 14336 byte maximum)
Binary sketch size: 450 bytes (of a 14336 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x60
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x60


The serial monitor returs:
Code: [Select]
T:582 I:10.64 U:344.59 P:3667.44 S:0.12 Q:31622.07 F:0.00
T:583 I:10.64 U:344.57 P:3666.43 S:0.12 Q:31621.95 F:0.00
T:584 I:10.64 U:344.59 P:3667.12 S:0.12 Q:31622.04 F:0.00
T:585 I:10.64 U:344.58 P:3666.36 S:0.12 Q:31621.86 F:0.00
T:586 I:10.64 U:344.62 P:3667.97 S:0.12 Q:31622.09 F:0.00
T:587 I:10.65 U:344.77 P:3670.65 S:0.12 Q:31621.95 F:0.00
T:588 I:10.64 U:344.56 P:3666.58 S:0.12 Q:31622.18 F:0.00
T:589 I:10.64 U:344.60 P:3667.90 S:0.12 Q:31622.12 F:0.00
T:590 I:10.65 U:344.82 P:3672.21 S:0.12 Q:31622.04 F:0.00
T:591 I:10.63 U:344.24 P:3660.18 S:0.12 Q:31623.26 F:0.00
T:592 I:10.63 U:344.13 P:3657.94 S:0.12 Q:31623.77 F:0.00
T:593 I:10.63 U:344.19 P:3658.60 S:0.12 Q:31623.71 F:0.00
T:594 I:10.64 U:344.44 P:3664.81 S:0.12 Q:31622.36 F:0.00
T:595 I:10.64 U:344.40 P:3664.05 S:0.12 Q:31622.41 F:0.00
T:596 I:10.63 U:344.47 P:3663.23 S:0.12 Q:31622.01 F:0.00
T:597 I:10.65 U:344.89 P:3673.20 S:0.12 Q:31621.94 F:0.00


I have the /dev/ttyUSB0 selected in upload progrem and the NG chip/version.
the L LED is blinking on off every ~second


johnwasser

Looks to me like the Arduino is not getting reset in preparation to receive a new sketch.  Hold down the Reset button on the Arduino and click on the upload button in the IDE.  When the message "Binary sketch size:" appears in the IDE, release the reset button.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

brodul

Tnx this solves the problem.

Now I get:
Code: [Select]
avrdude: stk500_recv(): programmer is not responding


But when I upload with procedure above. I don.t get an error.
Then I have to unplug and plug the Arduino NG and the program is running.

TNX for support

Go Up