Ciao a tutti.
Ultimamente sto facendo test di programmi che connettono l'Arduino Due con il Raspberry PI.
Avrei bisogno di un sistema per programmare l'arduino dalla console del RasPI (a cui mi connetto via SSH), perché mi tocca correre ogni 5 minuti da dove tengo il raspberry, e soprattutto mi tocca fare le acrobazie per attaccare tutti i cavi.
Usa bossac direttamente da terminale.
bossac è il programma usato per spedire gli sketch alla DUE. Non mi chiedere però la sintassi, attiva la modalità verbose per l'upload dall'IDE e poi studiati un pò l'output che compare sul terminale dell'IDE.
BOSSA Command Line
BOSSA is also available in a command line version that enables one to quickly program devices from the command line or to integrate BOSSA into automated scripts. The help for BOSSA command line is shown below.
$ bossac -h
Usage: bossac.exe [OPTION...] [FILE]
Basic Open Source SAM-BA Application (BOSSA) Version 1.2
Flash programmer for Atmel SAM devices.
Copyright (c) 2011 ShumaTech (http://www.shumatech.com)
bossac -r0x10000 image.bin # Read 64KB from flash and store in image.bin
Options:
-e, --erase erase the entire flash
-w, --write write FILE to the flash; accelerated when
combined with erase option
-r, --read[=SIZE] read SIZE from flash and store in FILE;
read entire flash if SIZE not specified
-v, --verify verify FILE matches flash contents
-p, --port=PORT use serial PORT to communicate to device;
default behavior is to auto-scan all serial ports
-b, --boot[=BOOL] boot from ROM if BOOL is 0;
boot from FLASH if BOOL is 1 [default];
option is ignored on unsupported devices
-c, --bod[=BOOL] no brownout detection if BOOL is 0;
brownout detection is on if BOOL is 1 [default]
-t, --bor[=BOOL] no brownout reset if BOOL is 0;
brownout reset is on if BOOL is 1 [default]
-l, --lock[=REGION] lock the flash REGION as a comma-separated list;
lock all if not given [default]
-u, --unlock[=REGION] unlock the flash REGION as a comma-separated list;
unlock all if not given [default]
-s, --security set the flash security flag
-i, --info display device information
-d, --debug print debug messages
-h, --help display this help text
Ciao a tutti!
Ho provato a fare qualcosa ma mi sono subito dovuto fermare perchè non sono riuscito ad installare il software!
Qualcuno mi può dare una mano?
L'IDE essendo un programma Java gira sulla JVM per cui basta che la distro da usare abbia una JVm compilata per Arm.
Devi avere poi anche bossac e avrdude compilati per Arm, che sono i 2 programmi che flashano rispettivamente il chip Sam e gli Atmega. La toolchain allegata all'IDE non credo sia compilata per Arm, quindi dovresti usare quella del sistema embedded.
Ma non mi sbilancio perché non ho una schedina Linux embedded.