Polargraph

De FunLab Documentation
Révision datée du 9 juin 2018 à 00:02 par Tuxun (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à : navigation, rechercher

==flashage initial== (issu de http://www.polargraph.co.uk/setup/polargraphsd-updating-firmware/ ) L'Arduino n'étant pas flashé il faut s'en charger! direction le lien ci dessous (trouvé dans le lien ci dessus)

https://github.com/euphy/polargraphcontroller/releases/latest

pour recupérer une archive de 35 Mo contenant le binaire compilé "polargraph_server_polarshield/polargraph_server_polarshield_v2_2.4.cpp.hex"

il est dans "destination->Polargraph 2016-01-26->arduino-source->polargraph_server_polarshield" apres decompression.


Pour mémoire:

<path to arduino>/hardware/tools/avr/bin/avrdude
-C<path to arduino>/hardware/tools/avr/etc/avrdude.conf
-v -patmega2560 -carduino -D -b 115200 -cstk500v2
-P<name of serial port>
-Uflash:w:<path to compiled hex file>polargraph_server_polarshield_v1.x_2.4.cpp.hex:i

le :i a la fin, spécifie le format.

log.txt
tuxun@machine#
 avrdude -C /home/tuxun/2016/softs/arduino-1.6.7/hardware/tools/avr/etc/avrdude.conf -v -patmega2560 -carduino -D -b 115200 -cstk500v2 -P/dev/ttyACM0 -Uflash:w:/home/tuxun/polargr/Polargraph\ 2016-01-26/arduino-source/polargraph_server_polarshield/polargraph_server_polarshield_v2_2.4.cpp.hex 
 
avrdude: Version 6.0.1, compiled on Oct 21 2013 at 17:07:18
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/home/tuxun/2016/softs/arduino-1.6.7/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega2560
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
           flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : STK500V2
         Description     : Atmel STK500 Version 2.x firmware
         Programmer Model: AVRISP
         Hardware Version: 15
         Firmware Version Master : 2.10
         Vtarget         : 0.0 V
         SCK period      : 104.2 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9801
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D0
avrdude: safemode: efuse reads as FF
avrdude: reading input file "/home/tuxun/polargr/Polargraph 2016-01-26/arduino-source/polargraph_server_polarshield/polargraph_server_polarshield_v2_2.4.cpp.hex"
avrdude: input file /home/tuxun/polargr/Polargraph 2016-01-26/arduino-source/polargraph_server_polarshield/polargraph_server_polarshield_v2_2.4.cpp.hex auto detected as Intel Hex
avrdude: writing flash (107270 bytes):

Writing | ################################################## | 100% 17.23s

avrdude: 107270 bytes of flash written
avrdude: verifying flash memory against /home/tuxun/polargr/Polargraph 2016-01-26/arduino-source/polargraph_server_polarshield/polargraph_server_polarshield_v2_2.4.cpp.hex:
avrdude: load data flash data from input file /home/tuxun/polargr/Polargraph 2016-01-26/arduino-source/polargraph_server_polarshield/polargraph_server_polarshield_v2_2.4.cpp.hex:
avrdude: input file /home/tuxun/polargr/Polargraph 2016-01-26/arduino-source/polargraph_server_polarshield/polargraph_server_polarshield_v2_2.4.cpp.hex auto detected as Intel Hex
avrdude: input file /home/tuxun/polargr/Polargraph 2016-01-26/arduino-source/polargraph_server_polarshield/polargraph_server_polarshield_v2_2.4.cpp.hex contains 107270 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 13.80s

avrdude: verifying ...
avrdude: 107270 bytes of flash verified

avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D0
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (H:FF, E:D0, L:FF)

avrdude done.  Thank you.

tuxun@machine#