How do I manually upload to the Arduino DUE?

158 views
Skip to first unread message

Patrick Ireland

unread,
Mar 14, 2014, 7:01:38 PM3/14/14
to devel...@arduino.cc
I have implemented a JAVA based make tool for use with Arduino DUE.

I have successfully reverse engineered up to the construction of the xyz.cpp.bin file using the arm-none-eabi-object utility.

However, I now need to upload the xyz.cpp.bin file to the DUE and launch same on the DUE.

I can see where a "reset" is performed.

Looking in the hardware\tools\g++arm_none_eabi\bin directory, the following tools are available:

04/17/2010  13:20           380,928 arm-none-eabi-abiactel.dll
04/17/2010  13:20           569,856 arm-none-eabi-addr2line.exe
04/17/2010  13:20           589,312 arm-none-eabi-ar.exe
04/17/2010  13:20         1,010,688 arm-none-eabi-as.exe
04/17/2010  13:20           215,040 arm-none-eabi-c++.exe
04/17/2010  13:20           569,856 arm-none-eabi-c++filt.exe
04/17/2010  13:20           214,016 arm-none-eabi-cpp.exe
04/17/2010  13:20           215,040 arm-none-eabi-g++.exe
04/17/2010  13:20           212,480 arm-none-eabi-gcc-4.4.1.exe
04/17/2010  13:20           212,480 arm-none-eabi-gcc.exe
04/17/2010  13:20            44,051 arm-none-eabi-gcov.exe
04/17/2010  13:20         4,098,560 arm-none-eabi-gdb.exe
04/17/2010  13:20           633,344 arm-none-eabi-gprof.exe
04/17/2010  13:20           843,264 arm-none-eabi-ld.exe
04/17/2010  13:20           579,584 arm-none-eabi-nm.exe
04/17/2010  13:20           722,432 arm-none-eabi-objcopy.exe
04/17/2010  13:20           856,064 arm-none-eabi-objdump.exe
04/17/2010  13:20           589,312 arm-none-eabi-ranlib.exe
04/17/2010  13:20           341,504 arm-none-eabi-readelf.exe
04/17/2010  13:20           784,384 arm-none-eabi-run.exe
04/17/2010  13:20           571,904 arm-none-eabi-size.exe
04/17/2010  13:20           571,392 arm-none-eabi-strings.exe
04/17/2010  13:20           722,432 arm-none-eabi-strip.exe
04/17/2010  13:20           166,400 cs-make.exe
04/17/2010  13:20            38,912 cs-rm.exe

What is needed to upload the bin file to the DUE and start it executing?

Is there more than more step to the upload? If so, what might they be?

Does the IDE working with DUE make use of the bossac.exe program?

William "Chops" Westfield

unread,
Mar 15, 2014, 2:34:24 AM3/15/14
to Patrick Ireland, devel...@arduino.cc

On Mar 14, 2014, at 4:01 PM, Patrick Ireland wrote:

> What is needed to upload the bin file to the DUE and start it executing?
> Is there more than more step to the upload? If so, what might they be?
> Does the IDE working with DUE make use of the bossac.exe program?
>
Do you know about turning on "verbose" mode in the Arduino preferences? Here's the end part of the log from a verbose Due "upload" (to a port that doesn't have a Due on it…)

/Applications/arduino/Arduino-1.5.2.app/Contents/Resources/Java/hardware/tools/g++_arm_none_eabi/bin/arm-none-eabi-objcopy -O binary /var/folders/jz/5yb8f2hr8xjcpf0059bsfz4r0000gn/T/build7919858949275119760.tmp/Blink.cpp.elf /var/folders/jz/5yb8f2hr8xjcpf0059bsfz4r0000gn/T/build7919858949275119760.tmp/Blink.cpp.bin
Binary sketch size: 9,660 bytes (of a 524,288 byte maximum) - 1% used

Forcing reset using 1200bps open/close on port /dev/tty.usbserial-A20e1eAN

/Applications/arduino/Arduino-1.5.2.app/Contents/Resources/Java/hardware/tools/bossac --port=tty.usbserial-A20e1eAN -U false -e -w -v -b /var/folders/jz/5yb8f2hr8xjcpf0059bsfz4r0000gn/T/build7919858949275119760.tmp/Blink.cpp.bin -R

So:
1, 2) Looks like two steps: cause a board reset and then do the upload with "bossac"
3) yes.

It goes slightly differently for "native USB port" vs "programming port"

WestfW

Reply all
Reply to author
Forward
0 new messages