RoboterCC - Robotic Code Compiler
Forum Robot Kits NIBO 2 UCOM-IR2-X avrdude: stk500v2_command failed

Welcome

Nachrichten

Sie sind nicht eingeloggt.

Werbung

Banner

Letzte Themen

  • Keine Beiträge vorhanden

Site-Statistic

  • 7432 private projects
  • 378 public projects
  • 16179195 lines compiled
  • 58194 builds
NIBO @ facebook YouTube Twitter
Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA: UCOM-IR2-X avrdude: stk500v2_command failed

UCOM-IR2-X avrdude: stk500v2_command failed 7 Jahre 4 Monate her #3936

Hi all
I have connected NIBO2 over the programmer UCOM-IR2X and wants to upload a sketch with Arduino SW now. Connection is via USB port /dev/ttyACM0 (on a Linux system). LED on UCOM is constant green.
On the Arduino SW
"Tools-> Board: "nicai-systems NIBO2 robot"
Port: "/dev/ttyACM0"
Programmer: "UCOM-IR2 / UCOM-IR2-X (stk500v2)"

when trying to upload sketch folling message:
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_331372/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: stk500v2_command(): command failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude done. Thank you.

An error occurred while uploading the sketch

After this LED has turned constant red!

What is wrong? :help: Note: on Windows 7 system same error appears.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

UCOM-IR2-X avrdude: stk500v2_command failed 7 Jahre 4 Monate her #3937

  • workwind
  • workwinds Avatar
  • OFFLINE
  • Administrator
  • Beiträge: 573
just enter the following command on your Linux system and post the output:
/home/kurt/Arduino/hardware/tools/avr/bin/avrdude -C/home/kurt/Arduino/hardware/tools/avr/etc/avrdude.conf -patmega128 -cstk500v2 -P/dev/ttyACM0

Make sure that your NIBO 2 is switched on...
Der Administrator hat öffentliche Schreibrechte deaktiviert.

UCOM-IR2-X avrdude: stk500v2_command failed 7 Jahre 4 Monate her #3938

Hi workwind
thank you ver much for your help.
I have done as suggested:

/home/kurt/Arduino/hardware/tools/avr/bin/avrdude -C/home/kurt/Arduino/hardware/tools/avr/etc/avrdude.conf -patmega128 -cstk500v2 -P/dev/ttyACM0

avrdude: stk500v2_command(): command failed
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.


avrdude done. Thank you.

This was the result. NIBO2 has been switched on. After command, UCOM-IR2-X LED has turned red. But it seemed that something has been sent to the NIBO2, as the display has changed for a short time, so as if it would override the flash-memory, but the it initialized itself after this to the already installed initial program.
Thank you very much your care.
Letzte Änderung: 7 Jahre 4 Monate her von bluesailor. Begründung: Error in cut/paste of Linux terminal message.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

UCOM-IR2-X avrdude: stk500v2_command failed 7 Jahre 4 Monate her #3939

Hello workwind
I have tried now with the command you suggest and added the _F flag. This was the result:

kurt@kurt-VG086AA-UUZ-m9770ch ~ $ /home/kurt/Arduino/hardware/tools/avr/bin/avrdude -C/home/kurt/Arduino/hardware/tools/avr/etc/avrdude.conf -patmega128 -cstk500v2 -P/dev/ttyACM0 -F

avrdude: stk500v2_command(): command failed
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0xc82768
avrdude: Expected signature for ATmega128 is 1E 97 02

avrdude done. Thank you.

Maybe with this additional infos you may deduct the problem.
Thank you very much for your help so far.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
Ladezeit der Seite: 0.045 Sekunden

Werbung