I'm new in the Arduino world and have recently obtained a DUE board and want to upload my redBoard (UNO) previous project code on it.
But I get some problems while uploading the code with the Arduino IDE, I've selected the Arduino Duemilanove w/ ATmega328.
Here is the IDE's output:
avrdude: Version 5.11.1, compiled on Oct 18 2011 at 21:41:15
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/usr/share/arduino/hardware/tools/avrdude.conf"
User configuration file is "/root/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM3
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude done. Thank you.
USB kernel event:
[19284.435407] usb 3-4: new full-speed USB device number 42 using xhci_hcd
[19284.453375] usb 3-4: New USB device found, idVendor=2341, idProduct=003d
[19284.453379] usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=220
[19284.453381] usb 3-4: Product: Arduino Due Prog. Port
[19284.453384] usb 3-4: Manufacturer: Arduino (www.arduino.cc)
[19284.453386] usb 3-4: SerialNumber: 9533633373535150A0A0
[19284.453485] usb 3-4: ep 0x82 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[19284.453676] cdc_acm 3-4:1.0: ttyACM3: USB ACM device
I've seen on the net that it actually need another uploader called bossac but I get this message (even if Tx & Rx LED are flashing during the command)
./bossac --port=ttyACM3 -e -w -v -b /tmp/build5194752623462288832.tmp/test.cpp.hex
No device found on ttyACM3
Thank you for your answer, indeed it seems I've not search enough...
A last thing, in my code I used SofwareSerial library and it's not present in the IDE library. I guess there is a reason, is there a native keyword a something like this to make an SoftwareSerial equivalent object? It is Serial1 2 and 3 on the DUE? And if I need more Serial pins?
I think that the SoftwareSerial library has not been ported to Due.
T|he Due has 3 more hardware serial ports, these are named Serial1, Serial2, Serial3. Physically they are mapped to pins 14-19, consult the pinout diagram to match up the ports. (TXD1/RXD1 is Serial1, and so on).
There is potentially one more hardware serial port available, but it is not supported by the Serial library. Beyond that would require software method.
I had this exact same problem and could not find a way to fix it. After days of searching to no avail, I deleted my IDE. I happened to download the Arduino IDE 1.5.7 (the beta version) by accident, and found that I was now able to upload code to the Due. Also make sure that you have inserted the USB cable into the USB port closest to the power (this is the programming port).
smajeed:
I had this exact same problem and could not find a way to fix it. After days of searching to no avail, I deleted my IDE. I happened to download the Arduino IDE 1.5.7 (the beta version) by accident, and found that I was now able to upload code to the Due. Also make sure that you have inserted the USB cable into the USB port closest to the power (this is the programming port).
There a two different options in the IDE to connect to the right port "Programming Port" and "Native USB Port", you need to select which ever port you are connecting to, so the "Programming Port" (also labeled as such on the board) should be the obvious choice...