Arduino ISP: 'Device signature = ...'-Fehler beheben
English
Deutsch
Problem:
Ich versuchte, meinen Arduino mit einem AVRISP MK II-Programmer zu programmieren, aber bei jedem Versuch (mit avrdude oder der Arduino-Software) trat folgender Fehler auf:
avrdude_device_signature_error.txt
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: MOSI fail, RST fail, SCK fail, Target reverse inserted
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0xb058e2
avrdude: Expected signature for ATmega2560 is 1E 98 01
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.Lösung
In meinem Fall bestand die Ursache darin, dass ein Shield mit dem SPI-Bus verbunden war.
Da der SPI-Bus auf dem Arduino mit dem ICSP-Header für In-System Programming (ISP) geteilt wird – dem Protokoll, das von externen Programmern zur Programmierung von AVR-Chips verwendet wird –, kann das Verbinden von weiteren Komponenten mit dem SPI-Bus zu Problemen führen.
Versuchen Sie, alle Komponenten vom SPI-Bus zu trennen. Wenn das CS-Signal (Chip Select) des zusätzlichen Geräts am SPI-Bus Low ist, könnte es die Kommunikation mit dem AVR-Chip stören!
Check out similar posts by category:
Arduino
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow