piupdue

所属分类:嵌入式Linux
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2021-06-23 08:54:31
上 传 者sh-1993
说明:  为Arduino编程来自树莓PI,
(Program an Arduino Due from a Raspberry PI,)

文件列表:
LICENSE (1079, 2021-06-23)
MANIFEST.in (13, 2021-06-23)
TODO.md (87, 2021-06-23)
build/ (0, 2021-06-23)
build/lib/ (0, 2021-06-23)
build/lib/piupdue/ (0, 2021-06-23)
build/lib/piupdue/ArduinoFlash.py (8008, 2021-06-23)
build/lib/piupdue/ArduinoFlashEefc.py (7519, 2021-06-23)
build/lib/piupdue/ArduinoFlashHardValues.py (1459, 2021-06-23)
build/lib/piupdue/ArduinoFlashSerial.py (3904, 2021-06-23)
build/lib/piupdue/ArduinoFlashXmodem.py (8231, 2021-06-23)
build/lib/piupdue/Call.py (131, 2021-06-23)
build/lib/piupdue/Logger.py (986, 2021-06-23)
build/lib/piupdue/__init__.py (29, 2021-06-23)
piupdue/ (0, 2021-06-23)
piupdue/ArduinoFlashEefc.py (7591, 2021-06-23)
piupdue/ArduinoFlashHardValues.py (1459, 2021-06-23)
piupdue/ArduinoFlashSerial.py (3904, 2021-06-23)
piupdue/ArduinoFlashXmodem.py (8231, 2021-06-23)
piupdue/Logger.py (1326, 2021-06-23)
piupdue/__init__.py (50, 2021-06-23)
piupdue/piupdue.py (13354, 2021-06-23)
setup.py (436, 2021-06-23)

# piupdue Python package that enables a compiled Ardunio Sketch to be uploaded to an Arduino Due from a RaspberryPI (connected by USB). Based on the [Arduino BOSSA C++ source code.](https://github.com/shumatech/BOSSA/tree/arduino/src) Install using: $ pip install piupdue Sketch file must be saved locally on PI and be of type ".cpp.bin". # Run from cmd line usage: piupdue.py [-h] -f SKETCHFILE [-p PORT] [-l LOGFILE] optional arguments: -h, --help show this help message and exit -f SKETCHFILE, --file SKETCHFILE Sketch file to upload. Including path. (/path/File.cpp.bin) -p PORT, --port PORT Port Due is connected on. Leave blank for auto selection. -l LOGFILE, --log LOGFILE Save output to log file. # Use in Python Program Use the Upload function found in piupdue.py, Ex: import piupdue piupdue.Upload('/usr/update/FastSketch.cpp.bin', '/dev/ttyACM1', '/var/log/piupdue.log') # Some background The Arduino Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU. It is the first Arduino board based on a 32-bit ARM core microcontroller instead of the more common AVR. The different mcu means the performance is better but also means the booting process is different from the AVR, Ardunio has designed the board such that flashing firmware is easier than what the stock SAM3X has offered, [this link](http://playground.arduino.cc/Bootloader/DueBootloaderExplained) explains the booting process and the tricks that Arduiro implemented. The "avrdude" program is used to upload code to the AVR based Arduinos and there are quite a few examples of how to do this from the RaspberryPI. BOSSAC is used by Arduino to upload code to the ARM, it's the command line variation of [BOSSA](http://www.shumatech.com/web/products/bossa) which is a simple and open source flash programming utility for Atmel's SAM family of flash-based ARM microcontrollers designed to replace Atmel's SAM-BA software. I required the ability to upload new code from a RaspberryPI to a Due. I couldn't find any info on getting BOSSAC to run on the PI so I have written this package in Python to replicate the fucntionality.

近期下载者

相关文件


收藏者