Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By frippe75
#34225 Good evening! (my time)

I'm getting error avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x10
Trying to program an ATMega328p using the Arduino_Wifi_AVRISP.

http://ibin.co/2MnEZtamGxHZ

http://pastebin.com/7DHwBkth

Code: Select allconst uint8_t reset_pin = 16; // GPIO 16
ESP8266AVRISP avrprog(port, reset_pin);


The ATmega is a 16Mhz/5V running on a breadboard setup with optiboot. Using FTDI cable programs the normal Blink sketch fine. Between the ESP and the ATmega there is a Bi-Directional Logic Level shifter for 3V/5V pin... Common ground...

The breadboard setup has a resetbutton so I have tried manually to hold the reset-line low during programming since I believe thats related...
Another thing is... The ESP is only powered using FTDI so it might not be able to drive both the ESP and the programming as well... But it's stable... Uptime is ... about an hour.. woho

Maybe some sleep (for my self) would be the way to go...
Maybe another option is to setup some voltageReg 3.3V and 5V and remove the FTDI's. Not sure if they might interfere with programming....