Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/estobbart/due-reset
Command-line tool to reset an Arduino Due board for OS X.
https://github.com/estobbart/due-reset
arduino arduino-source asf atmel board objective-c xcode
Last synced: 1 day ago
JSON representation
Command-line tool to reset an Arduino Due board for OS X.
- Host: GitHub
- URL: https://github.com/estobbart/due-reset
- Owner: estobbart
- License: mit
- Created: 2013-07-16T14:50:47.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-14T21:17:05.000Z (about 11 years ago)
- Last Synced: 2023-08-02T04:56:16.812Z (over 1 year ago)
- Topics: arduino, arduino-source, asf, atmel, board, objective-c, xcode
- Language: Objective-C
- Size: 129 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
due-reset
=========Command-line tool to reset an Arduino Due board for OS X.
Setup:
------------
Using XCode for Atmel development on an Arduino Due with the Atmel Software Framework (asf).Tools:
------------
Download the ASF from Atmel (you'll need to create a login if you don't already have one).[http://asf.atmel.com](http://asf.atmel.com)
Download the ARM compiler that's distributed with the Arduino source. (see build/build.xml for details)
[http://arduino.googlecode.com/files/gcc-arm-none-eabi-4.4.1-2010q1-188-macos.tar.gz](http://arduino.googlecode.com/files/gcc-arm-none-eabi-4.4.1-2010q1-188-macos.tar.gz)
Copy `bossac` from `build/macosx/dist/bossac` in the Arduino source.
[http://arduino.cc/en/Main/ArduinoBoardDue](http://arduino.cc/en/Main/ArduinoBoardDue) (see programming for details)Solution:
------------Before using `bossac` with an Arduino Due you must first issue a reset.
[http://arduino.cc/en/Guide/ArduinoDue#toc4](http://arduino.cc/en/Guide/ArduinoDue#toc4)
If you don't issue a reset first you'll get the following error from bossac:
No device found on tty.usbmodem
Now you can write an install script to run after your Makefile from XCode.
#!/bin/bash
./due-reset /dev/tty.usbmodem####
./bossac --port=tty.usbmodem#### -U false -e -w -v -b [MyApp].bin -R