Go Down

Topic: Upload issues with Atmega328p directly connected to TX2 module (Read 268 times) previous topic - next topic

rk63018

Hi there,

I am having issues uploading a sketch to my ATmega328P chip which is on a custom board identical to the Arduino Mini Pro. This board is connected to a TX2 module setup. The Rx and Tx lines goes directly to TX2 and we downloaded the Arduino IDE on Ubuntu.

If we connect a USB dongle to the Rx and Tx lines on our custom board to the TX2 carrier board setup, we can successfully upload the sketch.

But we expect that we do not need to use a dongle, since the Rx and Tx signal lines from the Atmega328P on our custom board goes directly to the TX2 module via a connector. When we try to upload a sketch without the dongle, we get this error


avrdude: arduino_read_sig_bytes(): (a) protocol error, expect=0x10, resp=0x0e
avrdude: error reading signature data for part "ATMEGA328P", rc=-3
avrdude: error reading signature data, rc=-3
avrdude: stk500_disable(): protocol error, expect 0x14 resp=0x00

The Tx and Rx lines works, since without the dongle I can read and write bytes using the Arduino serial monitor. This shows that UART communication (without the dongle) between our custom board that has the Atmega328P and through the connector to the TX2 module is working. However, we just cannot upload the sketch without the dongle.

We do the same steps, press upload, press the reset button but it does not work. When we got our Atmega328p it needed a bootloader, so I used an Arduino to burn the bootloader in it. I followed these steps

https://www.instructables.com/id/Burn-a-New-Bootloader-Arduino-Pro-Mini/

where I wired it to an Arduino open the AdruinoISP sketch and burned the bootloader onto the Atmega328p. Not sure if the firmware I put on the Atmega328p is correct.

Any help would be very much appreciated!

rk63018

We designed a board with the Atmega328p on it and connected it to a TX2 module UART line without a FTDI chip. We didn't think we need to convert the data since we don't need to use a USB dongle; the Rx and Tx lines to the TX2 are directly connected. But we are having issues uploading the sketch we get this error:



avrdude: arduino_read_sig_bytes(): (a) protocol error, expect=0x10, resp=0x0e
avrdude: error reading signature data for part "ATMEGA328P", rc=-3
avrdude: error reading signature data, rc=-3
avrdude: stk500_disable(): protocol error, expect 0x14 resp=0x00

Can anyone please help us understand what this error means? If we connect a USB dongle between the Rx and Tx lines to the TX2 module we can upload sketches. We are using the Arduino IDE on Ubuntu.

sterretje

If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.



Go Up