Hey everyone,
somethink went wrong with my 1 day old brittle.
It´s my first robot and i´m fairly new to the topic at all.
I tried to upload my first sketch step by step with this tutorial: https://docs.petoi.com/arduino-ide/upload-sketch-for-nyboard
Everything works fine until step 10 - i uploaded the sketch with the now again uncommented "#define MAIN_SKETCH" - nothing happend after that (the upload dont´t throw any failure message to me).
The tutorial says:
"Open the serial monitor. When the serial monitor prints "Ready!", the robot is ready to take your next instructions."
but there was nothing - completly empty serial monitor since then, no matter what i do.
Every next try to upload a sketch brings the "not in sync error" message, so i tried to repair the Bootloader with this Tutorial:
https://docs.petoi.com/technical-support/burn-bootloader-for-nyboard
I have an additional Arduino Uno R3 and followed the instructions step by step - everything works fine until i clicked "Burnt Bootloader".
The following error message appeared and i am completely lost with the "Failed chip erase" message at the bottom.
"/Users/stefankruppa/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/Users/stefankruppa/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -patmega328p -cstk500v1 -P/dev/cu.usbmodem1101 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/Users/stefankruppa/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
User configuration file is "/Users/stefankruppa/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/cu.usbmodem1101
Using Programmer : stk500v1
Overriding Baud Rate : 19200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
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 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 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 : STK500
Description : Atmel STK500 Version 1.x firmware
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x02
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10
Hardware Version: 35370299
Firmware Version: 140626928.3
Topcard : STK502
Vtarget : 1.8 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: stk500_initialize(): (b) protocol error, expect=0x10, resp=0x01
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x10
avrdude done. Thank you.
Failed chip erase: upload error: exit status 1
Hope anyone has an idea what i can try next, i´m a bit frustrated right now cause my Bittle seems a bit "dead", LEDs a lighting but no beep sound at power on and no movement :(
(I´m on a Mac Book Pro M1, in case this is important)
Greetings!
Stefan
I copy my solution from another forum thread here, in case someone with a similar problem find this thread.
--------------------------------------------
I got it! My Bittle is alife again^^ I borrowed a "USBasp + ISP-Adapter" from a friend (you get this one or similar devices (i.e. USBTiny) cheep everywhere in the internet) and burned a new bootloader with this instruction: https://docs.petoi.com/technical-support/burn-bootloader-for-nyboard Greetings, Stefan