Avrdude options

Hi,
What meaning option "-c arduino" ?
What kind of programmer/programming refer ?

When you make a post please make it in the appropriate section.
The section you posted in specific says do not post in this section!

Please cooperate with this, thank you.

The option -c arduino is programmer type. It refers to Arduino.
This is for Arduinos with AVR MCU, based on STK500 protocol, e.g. Arduino UNO R3, Arduino Mega 2560 R3, Arduino Nano...
avrdude -c -? to obtain all possibilities.

Hello, you can check all options here: AVRDUDE Option Descriptions.

But Arduino IDE also uses this option when uploading through the bootloader.
"-c arduino" also means bootloader programming ?
I don't understand this.

It causes avrdude to do the DTR manipulation that causes “auto reset”, and to use the subset of the stk500v1 communications protocol that is implemented by the avr bootloaders.

1 Like

Arduino IDE uses -carduino uploading via bootloader. Arduino is using the bootloader.
Uploading the bootloader is via ICSP (6 pin header on Arduino board). You have to use programmer, an extra device for this, another Arduino with ArduinoISP sketch (Arduino as ISP) or USBasp etc.
You cannot do this via USB port (it is possible but it would be very long story).
In a case of Arduino as ISP the IDE uses -cstk500v1 option.

I think, -c option name "programmer type" that makes the confusion. It is also programming protocol.

Is it what you want to know?

Yes @Budvar10 .
That is.
Thanks.

How long ?
I'm really interested in some details.

There is possibility to replace the whole flash memory during programming via serial line. Technically the bootloader can overwrite itself. However, normallyArduino has locked up the region where the bootloader resides and also the bootloader does not support it.
Read the MCU's datasheet for detailed information.

So the bootloader can overwrite itself regardless of the lockbits?
But I'm a bit offtopic :frowning:

No, it can't go over lock. Just read the datasheet if you interested in this option. This possibility is not used in the Arduino world.

I thought you could provide more information about bootloader overwrite itself.
Thanks anyway.

I read about it years ago but never tested. This is kind of advanced technique and little bit behind the borders of this forum, "untrodden path".

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