Hallo workwind
danke für diese Antwort. Hatte dasselbe Problem mit meinem NIBO2. Nachdem ich nun den Widerstand und den Kondensator entfernt habe, ist NIBO2 ansprechbar, aber immer noch nicht programmierbar. Der "erase" Befehl wird korrekt ausgeführt, aber nachdem der write und der Verify Zyklus in Arduino ausgeführt wurde erscheint die Fehlermeldung, dass die Infos im Memory nicht mit den geschriebenen Daten identisch ist:
Siehe Fehlermeldung von Arduino:
Arduino: 1.6.13 (Linux), Board: "nicai-systems NIBO 2 robot"
Bootloader file specified but missing: /home/kurt/Documents/AVRpgm/hardware/nicai/avr/bootloaders/DoNotEraseTheBootloader
Sketch uses 5,254 bytes (4%) of program storage space. Maximum is 131,072 bytes.
Global variables use 901 bytes of dynamic memory.
/home/kurt/Arduino/hardware/tools/avr/bin/avrdude -C/home/kurt/Arduino/hardware/tools/avr/etc/avrdude.conf -v -patmega128 -cstk500v2 -P/dev/ttyACM0 -Uflash:w:/tmp/arduino_build_73187/TT01_ErsterSketch.ino.hex:i
avrdude: Version 6.3, compiled on Sep 12 2016 at 15:21:49
Copyright (c) 2000-2005 Brian Dean,
www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/home/kurt/Arduino/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/home/kurt/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0
Using Programmer : stk500v2
AVR Part : ATmega128
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 4 12 64 0 no 4096 8 0 9000 9000 0xff 0xff
flash 33 6 128 0 yes 131072 256 512 4500 4500 0xff 0xff
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 4 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: 1
Firmware Version Master : 2.10
Vtarget : 5.0 V
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9702 (probably m128)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/tmp/arduino_build_73187/TT01_ErsterSketch.ino.hex"
avrdude: writing flash (5254 bytes):
Writing | ################################################## | 100% 0.08s
avrdude: 5254 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino_build_73187/TT01_ErsterSketch.ino.hex:
avrdude: load data flash data from input file /tmp/arduino_build_73187/TT01_ErsterSketch.ino.hex:
avrdude: input file /tmp/arduino_build_73187/TT01_ErsterSketch.ino.hex contains 5254 bytes
avrdude: reading on-chip flash data:
Reading | ##########################################An error occurred while uploading the sketch
######## | 100% 0.68s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x00 != 0x0c
avrdude: verification error; content mismatch
avrdude done. Thank you.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Der Speicher ist nun gelöscht - das ursprüngliche Programm (initializer2) ist nun nicht mehr auf dem chip. Nach dem Einschalten des NIBO2 reagiert dieser gar nicht. Erneuter Versuch, ein Programm zu laden ergibt die gleiche Fehlermeldung. Interessant ist auch, dass der write nur 0.08s dauert, der read hingegen 0.68s. Ist das normal?
Kannst Du mir hierbei helfen?
Herzlichen Dank.
--- bluesailor ---