Stk500() attempt 10 of 10: not in sync: resp=0x30

Hi, I am trying to upload a .ino to sleepypi2. but i keep getting this error message
i tried cycling power to the sleepypi, disconnect and reconnect it, reset it, but the same error keeps popping. Also, for whatever reason the IDE did not have Sleepypi board in the "Boards", so I added these line to boards.txt file
sleepypi.name=Sleepy Pi

sleepypi.upload.protocol=arduino
sleepypi.upload.maximum_size=30720
sleepypi.upload.speed=57600
sleepypi.upload.tool=avrdude
sleepypi.upload.tool.default=avrdude
sleepypi.upload.tool.network=arduino_ota
sleepypi.bootloader.tool=avrdude
sleepypi.bootloader.low_fuses=0xFF
sleepypi.bootloader.high_fuses=0xDA
sleepypi.bootloader.extended_fuses=0x05
sleepypi.bootloader.path=arduino:atmega
sleepypi.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
sleepypi.bootloader.unlock_bits=0x3F
sleepypi.bootloader.lock_bits=0x0F

sleepypi.build.mcu=atmega328p
sleepypi.build.f_cpu=8000000L
sleepypi.build.core=arduino:arduino
sleepypi.build.variant=arduino:standard
Please help!


Warning: Board arduino:avr:sleepypi doesn't define a 'build.board' preference. Auto-set to: AVR_SLEEPYPI
Warning: platform.txt from core 'Arduino AVR Boards' contains deprecated compiler.path={runtime.tools.avr-gcc.path}/bin/, automatically converted to compiler.path=/usr/bin/. Consider upgrading this core.
Archiving built core (caching) in: /tmp/arduino_cache_695129/core/core_arduino_avr_sleepypi_36a77fbff9e8e6630bdb841a558dd218.a
Sketch uses 930 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes of dynamic memory.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x34
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x31
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x32
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x2e
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x31
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x34
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x31
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x32
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x2e
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x30
An error occurred while uploading the sketch


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.```

I will tate a SWAG as you have given us very little information to go on. Go to the tools menu and be sure you have the correct board selected. If a Nano also check if you have the correct chip, you may need the old bootloader. I do not have a clue on the Sleepypi, that is why I took a SWAG.

I do have the right board selected i.e, Sleepypi.
How to get old bootloader?

Did you find that boards.txt entry somewhere on the Internet? If so, please provide the link to the page in a reply here on the forum.

Although we are quite knowledgeable about Arduino in general, many of the helpers probably don't know anything at all about this obscure "sleepypi2" thing. So we need some context if we are to be able to provide you with effective assistance.

gilshultz is referring to a special menu that appears when you select the Arduino Nano board. Having the wrong option selected from that menu is a common cause of failed uploads for users of Arduino Nano boards. But since you are not using the Arduino Nano board, there is no such menu and so you don't need to think about selecting the correct option from the nonexistent menu. So please forget about "old bootloader" for now.

1 Like

"Did you find that boards.txt entry somewhere on the Internet?" Yes, link = Setting up the Arduino IDE on Raspbian and Raspberry Pi OS - Spell Foundry

Sleepypi is a controller board similar to arduino uno. It is mostly used as a Raspberrypi "supporter", in my case I am using it to power ON/OFF the RPi. It is surprising that Sleepypi is obscure to you as it is a very well known micro controller. Also, if you are wondering if this had been done before? yes, but with Arduino IDE V1.0.5.

I notice that a modified version of the AVRDUDE uploader tool is required to upload to this board:

https://spellfoundry.com/docs/setting-up-the-arduino-ide-on-raspbian/#8-toc-title

This is handled automatically when you use the installation script, but since you apparently weren't able to use that script, the modified version must be installed manually.

Did you install that modified version of AVRDUDE by following the instructions at the link above?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.