AVRDUDE with CP210x USB to UART Bridge

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to use AVRDUDE to upload a hex file to an ATMega1284.

The programmer I'm using is a CP210x.

 

The chip already has a bootloader and, if I select USBASP as the programmer, then I can upload files to it using the Arduino IDE. 

However, in AVRDUDE, if I select USBASP as the programmer, it says it can't find a USB device with vid=0x16c0 pid=0x5dc.

vid for the CP210x is 10C4, pid is EA60. 

I tried changing the definition for usbasp in avrdude.conf to match the CP210x vid and pid however this didn't work.

I suspect this is because USBASP uses an SPI itnerface, whereas the CP210x uses a UART interface. Strange that it works in the Arduino IDE though?

 

Could anybody tell me what would be the correct programmer to use in AVRDUDE, or how I can get this programmer to work in AVRDUDE?

This topic has a solution.
Last Edited: Tue. Sep 22, 2020 - 06:44 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Doesn't matter. I worked it out.

 

Had to set the programmer set to arduino, baudrate to 57600, and then had to specify the com port:

 

avrdude -c arduino -p m1284 -u -U flash:w:sketch.hex -b 57600 -P com15

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

glynd wrote:
I worked it out.

good work! now please mark the solution - so that others can see it's resolved.

 

see Tip #5 in my signature, below, if you need instructions:

 

PS 

 

what was the "FTDI" about in the title?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

what was the "FTDI" about in the title?

 

FTDI is a manufacturer of USB/serial adapter chips. The term is used generically by some people, rather like Hoover. The CP210x is a family of similar devices made by Silabs, not FTDI.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

obdevel wrote:
FTDI is a manufacturer of USB/serial adapter chips. The CP210x is a family of similar devices made by Silabs, not FTDI.

These I know

 

[FTDI]  is used generically by some people

that's what I was wondering

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

obdevel wrote:
FTDI is a manufacturer of USB/serial adapter chips. The CP210x is a family of similar devices made by Silabs, not FTDI.

These I know

These I didn't know :)