How do I upload code to this board?

I got an old arduino board that might be a chinese rip-off but I am not sure. It seems to have a program uploaded to it and it is connected to a usb-ttl adapter. I tried to upload code to it but I get a lot of stk500_recv(): programmer is not responding errors and the code is not sent to the device. It has a MEGA328P AU 1448 microcontroller on it and when I looked it up I found it is an Arduino Uno Rev 3 from this website - https://chipwired.com/identify-arduino-board/, but that is not possible, as it doesn't look like it at all and they most likely just share the same microprocessor. I don't know if I am choosing the proper programmer but I have no idea which one to choose. Can anyone help me with this? This is a picture of the board:

This is some clone of the Arduino Pro Mini
https://docs.arduino.cc/retired/boards/arduino-pro-mini

Anyway, it should have the bootloader by the default so it should be programmable via USB/TTL adapter. Check your port, connection, etc. There is also possibility that the bootloader is not present or it is damaged. In this case you will need ISP programmer.

Sometimes I get error messages like these:

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x1c
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x1c
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xfc
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x1c
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x1c
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x1c
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xe0
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x1c
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x1c
An error occurred while uploading the sketch

And I also get error messages like these:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board.  See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

It should have a working bootloader, as it was running properly before.

But now it's not working. Did you try another board? The now it's not working could mean the board is broken.

It looks like your connection is not reliable.
The response with all bytes 0x00 means there is no connection to the MCU at all.
The first one can point to incorrect speed. Try to use nano old bootloader option.

EDIT: Did you remove post #3 I am responding to?

I did not remove it. It was hidden temporarily.

I tried to switch to the old bootloader microprocessor but now it always returns the 0x00 errors. Edit: It returned the other errors again even when I chose the old bootloader for the arduino nano and now it keeps showing the previous errors.

Have you tried pressing the reset button while the upload attempt is running?

Yes, it still doesn't work.

You can try ISP but programmer or another Arduino (Arduino as ISP) is needed.

As it turns out, I needed to press the reset button before uploading to switch it to program mode. Then I could use it as a normal Arduino Nano board with the old bootloader option. I don't need to burn a bootloader. Thank you for the help!

If you connect the DTR pin from the FTDI adapter to the DTR pin of the board (probably the rightmost one in your photo), pressing the reset button should no longer be necessary.

There is no DTR pin on the adapter. It only has a 3.3V pin, a TXD pin, a RXD pin, a GND pin and a 5V pin.

Well. If you use the board more often, then it would be good to have an adapter with DTR pin.

Something like this one:

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