hallo,
ich hatte nicht mehr darauf gehofft, dass sich noch jemand melden würde, habe also meine versuche mit code::blocks nicht nur eingestellt, sondern entfernt 
jetzt habe ich versucht meine bemühungen von damals wieder nachzuvollziehen, weiss nicht ob mir das gelungen ist. Die kompilierte datei ist eine andere (vor_und_zurueck_2.ino), liegt nach wie vor für die arduino-IDE und code:blocks in verschiedenen verzeichnissen damit sich die dateien und scripts nicht ins gehege kommen.
ich muss gestehen, dass ich so gut wie keine der meldungen verstehe. Das einzige was mir auffält ist die unterschiedliche größe der verfizierten flies: 13542 bytes (arduino IDE) und 5332 bytes (code::blocks) Vielleicht doch nicht ein problem des flashens, sondern der compiliervorgang von code::blocks? Auch wenn es keine fehlermeldungen, sondern "nur" warnungen gab...
Nach dem flashen über arduino-IDE läuft das programm, nach dem flaschen über code:blocks nicht - so viel zu meiner annahme, dass beim flashen etwas schiefläuft...
Ergebnis meiner neuen versuche:
Das hier ist das flashprotokoll der arduino IDE, es wird der arduino avrdude verwendet
Code:
Der Sketch verwendet13.542 Bytes (5%) des Programmspeicherplatzes. Das Maximum sind253.952 Bytes.
Globale Variablenverwenden 1.611 Bytes (19%) des dynamischen Speichers, 6.581 Bytes für lokale Variablen verbleiben. Das Maximum sind 8.192 Bytes.
/opt/arduino-1.6.8/hardware/tools/avr/bin/avrdude-C/opt/arduino-1.6.8/hardware/tools/avr/etc/avrdude.conf -v-patmega2560 -cwiring -P/dev/ttyACM0 -b115200 -D-Uflash:w:/tmp/buildbe2f8020554fcc44f69ca57f89b02053.tmp/vor_und_zurueck_2.ino.hex:i
avrdude: Version6.0.1, compiled on Apr 14 2015 at 18:03:40
Copyright(c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright(c) 2007-2009 Joerg Wunsch
System wideconfiguration file is"/opt/arduino-1.6.8/hardware/tools/avr/etc/avrdude.conf"
Userconfiguration file is "/home/georg/.avrduderc"
Userconfiguration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0
UsingProgrammer : wiring
OverridingBaud Rate : 115200
AVR Part : ATmega2560
Chip Erasedelay : 9000 us
PAGEL : PD7
BS2 : PA0
RESETdisposition : dedicated
RETRY pulse : SCK
serialprogram mode : yes
parallelprogram mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
MemoryDetail :
Block Poll Page Polled
MemoryType Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ---------- ---------
eeprom 65 10 8 0 no 4096 8 0 9000 9000 0x000x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x000x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x000x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x000x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x000x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x000x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x000x00
ProgrammerType : Wiring
Description : Wiring
ProgrammerModel: AVRISP
HardwareVersion: 15
FirmwareVersion Master : 2.10
Vtarget : 0.0 V
SCK period : 173.7 us
avrdude: AVR deviceinitialized and ready to accept instructions
Reading |################################################## | 100% 0.01s
avrdude: Devicesignature = 0x1e9801
avrdude: readinginput file"/tmp/buildbe2f8020554fcc44f69ca57f89b02053.tmp/vor_und_zurueck_2.ino.hex"
avrdude: writingflash (13542 bytes):
Writing |################################################## | 100% 2.17s
avrdude: 13542 bytesof flash written
avrdude: verifyingflash memory against/tmp/buildbe2f8020554fcc44f69ca57f89b02053.tmp/vor_und_zurueck_2.ino.hex:
avrdude: load dataflash data from input file/tmp/buildbe2f8020554fcc44f69ca57f89b02053.tmp/vor_und_zurueck_2.ino.hex:
avrdude: input file/tmp/buildbe2f8020554fcc44f69ca57f89b02053.tmp/vor_und_zurueck_2.ino.hexcontains 13542 bytes
avrdude: readingon-chip flash data:
Reading |################################################## | 100% 1.67s
avrdude: verifying...
avrdude: 13542 bytes of flash verified
avrdude done. Thankyou.
das hier ist das kompiler protokoll von code::blocks:
Code:
||=== Build: ArduinoMega 2560/ADK in vor_und_zurueck_2 (compiler: GNU AVR GCC Compiler)===|
/home/georg/.codeblocks/arduino/hardware/arduino/cores/arduino/IPAddress.h||Inmember function 'IPAddress::operator uint32_t()':|
/home/georg/.codeblocks/arduino/hardware/arduino/cores/arduino/IPAddress.h|51|warning:dereferencing type-punned pointer will break strict-aliasing rules[-Wstrict-aliasing]|
/home/georg/.codeblocks/arduino/hardware/arduino/cores/arduino/IPAddress.h||Inmember function 'bool IPAddress::operator==(const IPAddress&)':|
/home/georg/.codeblocks/arduino/hardware/arduino/cores/arduino/IPAddress.h|52|warning:dereferencing type-punned pointer will break strict-aliasing rules[-Wstrict-aliasing]|
/home/georg/.codeblocks/arduino/hardware/arduino/cores/arduino/IPAddress.h|52|warning:dereferencing type-punned pointer will break strict-aliasing rules[-Wstrict-aliasing]|
||=== Buildfinished: 0 error(s), 3 warning(s) (0 minute(s), 2 second(s)) ===|
und hier das flashprotokol mit code::blocks:
Code:
Launching tool'avrdude-ubuntu': avrdude -c wiring -P /dev/ttyACM0 -D -v -b 115200-p m2560 -C /etc/avrdude.conf-Uflash:w:bin/Release/vor_und_zurueck_2.hex (in/home/georg/Arduino/workspace/stepper_motor/hindernisse/vor_und_zurueck_2)
stderr>
stderr> avrdude:Version 6.1, compiled on Nov 23 2014 at 21:15:40
stderr> Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
stderr> Copyright (c) 2007-2014 Joerg Wunsch
stderr>
stderr> System wide configuration file is "/etc/avrdude.conf"
stderr> User configuration file is "/home/georg/.avrduderc"
stderr> User configuration file does not exist or is not a regular file,skipping
stderr>
stderr> Using Port : /dev/ttyACM0
stderr> Using Programmer : wiring
stderr> Overriding Baud Rate : 115200
stderr> AVR Part : ATmega2560
stderr> Chip Erase delay : 9000 us
stderr> PAGEL : PD7
stderr> BS2 : PA0
stderr> RESET disposition : dedicated
stderr> RETRY pulse : SCK
stderr> serial program mode : yes
stderr> parallel program mode : yes
stderr> Timeout : 200
stderr> StabDelay : 100
stderr> CmdexeDelay : 25
stderr> SyncLoops : 32
stderr> ByteDelay : 0
stderr> PollIndex : 3
stderr> PollValue : 0x53
stderr> Memory Detail :
stderr>
stderr> Block Poll Page Polled
stderr> Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
stderr> ----------- ---- ----- ----- ---- ------ ------ ---- ------ ---------- ---------
stderr> eeprom 65 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
stderr> flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
stderr> lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
stderr> hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
stderr> efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
stderr> lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
stderr> calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
stderr> signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
stderr>
stderr> Programmer Type : Wiring
stderr> Description : Wiring
stderr> Programmer Model: AVRISP
stderr> Hardware Version: 15
stderr> Firmware Version Master : 2.10
stderr> Vtarget : 0.0 V
stderr> SCK period : 104.2 us
stderr>
stderr> avrdude:AVR device initialized and ready to accept instructions
stderr>
stderr> Reading |################################################## | 100% 0.01s
stderr>
stderr> avrdude:Device signature = 0x1e9801
stderr> avrdude:reading input file "bin/Release/vor_und_zurueck_2.hex"
stderr> avrdude:input file bin/Release/vor_und_zurueck_2.hex auto detected as IntelHex
stderr> avrdude:writing flash (5332 bytes):
stderr>
stderr> Writing |###########
stderr> #####
stderr> #####
stderr> ##
stderr> #####
stderr> #####
stderr> #######
stderr> #####
stderr> ##### |100% 0.86s
stderr>
stderr> avrdude:5332 bytes of flash written
stderr> avrdude:verifying flash memory against bin/Release/vor_und_zurueck_2.hex:
stderr> avrdude:load data flash data from input filebin/Release/vor_und_zurueck_2.hex:
stderr> avrdude:input file bin/Release/vor_und_zurueck_2.hex auto detected as IntelHex
stderr> avrdude:input file bin/Release/vor_und_zurueck_2.hex contains 5332 bytes
stderr> avrdude:reading on-chip flash data:
stderr>
stderr> Reading |####
stderr> #####
stderr> ##
stderr> #####
stderr> ###
stderr> #######
stderr> ##
stderr> #######
stderr> #######
stderr> ########| 100% 0.62s
stderr>
stderr> avrdude:verifying ...
stderr> avrdude:5332 bytes of flash verified
stderr>
stderr> avrdudedone. Thank you.
stderr>
stderr>
stdout>
Tool executionterminated with status 0
Lesezeichen