Stk500_sync() error using ATMega328p with Arduino Bootloader

Hi, I am facing this error, when trying to upload code from the Arduino IDE to my ATMega 328p chip. I connected to the chip via TTL module and the wirings should be correct. Everything is connected on a breadboard.

I tried with automatic reset and manual reset, but both failed.

There is a Arduino bootloader burned on the chip.

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00Fehlgeschlagenes Hochladen: Hochladefehler: exit status 1
Zusammenfassung

Dieser Text wird ausgeblendet

Breadboards are very unreliable. There are two brands that I know of that are much better but none are 100%.

Are you uploading a sketch, it looks like it as I see a few components like Resistor, LED

OR are you messing with the bootloader? In 65 yrs I have NEVER messed with the bootloader.

If it’s just a sketch upload, why are you not using the USB connector?

Is there a boot loader burned on your microprocessor chip?

a7

Yes

Yes, there is a bootloader burned on the chip. What do you mean? I try to upload via the USB, but this doesnt work.

Did you use the TTL or the USB connector or both?

I used the TTL via MiniUSB zu USB and connected tho my windows device.

That is very confusing. You do the upload EITHER with the TTL adapter (pic below) or a normal USB cable to the Arduino.

I don't see any bypass caps on the ATmega328P in your setup.

Which boot loader did you burn? Arduino provides multiple boot loaders, e.g. for Uno, for Nano and for the old Nano.

Followed by "which board did you select" when programming?

The TTL adapter on the board is such an adapter isnt it? Its just connected via Mini USB to USB cable and not directly.

Unfortunately, I dont know. I got this already burned.

Where is one missing? There is a cap for the reset on Pin 1 and two further connected to the Quarz 16Mhz.

Those are indeed capacitors, but none of them are bypass capacitors placed across the Vcc and GND pins of the ATmega328P.

Ok, n ow I understand. In the future just say its connected by USB.

Now back to your upload issue. What board are you using and did you select the same boiard in the drop down. Perhaps show us a screen shot like below.

Yes :slight_smile:

Yes, I tried Arduino Uno as board.

But also Arduino Mini with ATMega as processor.

Why would you change the board, did you have both in front of you?

This is an ATMega328p chip with a bootloader already installed. Don´t know which version or arduino board was used for it actually. I got this chip already burned and there is still old code from previous user on it and I am not able to upload new code.

Good luck, I am outa here.

Thanks anyways