Questions tagged [avrdude]

Avrdude is an acronym for AVR Downloader/UploaDEr and is a free open source in-system programming software for Atmel AVR microcontroller.

homepage

related tags:

160 questions
22
votes
4 answers

Why do we need hardware programmers?

I use a Boarduino and a 30-row bread board to program my ATtiny. I load a not too complicated sketch called ArduinoISP (included by default now in the Arduino IDE), and suddenly I have a working programmer. Atmel sells a nice programmer for…
Jack Schmidt
  • 2,025
  • 2
  • 18
  • 24
8
votes
4 answers

How do I upload a hex file firmware to a target board without using the arduino IDE?

Is there a way for me to create an installer that runs a shell script to upload a firmware update to an arduino that doesn't involve using the IDE? I have a thing that I make that sometimes needs a firmware update, and sometimes the people who…
Steve Cooley
  • 1,485
  • 1
  • 11
  • 16
8
votes
1 answer

Upload to an Arduino from the command line

If I have a sketch compiled to hex, is it be possible to upload this sketch to an Arduino board using avrdude directly from command line? Pekkaa figured out that arduino ide executes the following command when uploading the…
littlebirdceo
  • 4,697
  • 8
  • 41
  • 61
8
votes
3 answers

Can a hobbyist ARM setup be as simple as this AVR one?

I like how simple an Atmel AVR setup can be for hobbyist assembly language programming. For example: Put a plain ATmega DIP chip {A} on a breadboard Connect 6 pins to a USB programmer {B} connected to a computer (e.g.) . (The chip is powered by…
xyz
  • 183
  • 5
8
votes
1 answer

Using AVRDude to program AtTiny via Arduino-as-ISP

As I understand, I can use Arduino as ISP. Most instructions start with "load ArduinoISP from examples". But then I want to load existing .hex file to the target chip. E.g. AvrDude -> ArduinoBoard+ArduinoISP -> targetChip And I fail miserably to…
Alumashka
  • 393
  • 1
  • 3
  • 12
8
votes
5 answers

Firsthand experience with Linux AVR IDE

I am looking for some input into getting a good integrated development environment set up for AVR programming under Linux (Assembly and C). My studies gave me some limited practical experience with AVRs but I fear I am getting a bit rusty so want to…
BrianMcK
  • 213
  • 2
  • 6
7
votes
1 answer

Backup AVR with avrdude

I'm heavily experimenting with ATtiny AVR's and I can't afford to buy a new AVR for every experiment, so I thought up a backup script. The idea is that I can bring my AVR back to factory defaults after I've used them. Especially fuses and…
jippie
  • 33,033
  • 16
  • 93
  • 160
6
votes
2 answers

Is there a way to preserve EEPROM contents in AVR Atmega when burning a new firmware to flash with avrdude?

I'm finishing an application which will use some non-volatile parameters stored on an AVR Atmega644P EEPROM. The initial EEPROM values were generated using the EEMEM attribute (like described on this tutorial) and burned to the AVR using avrdude…
Claudio
  • 396
  • 5
  • 13
6
votes
2 answers

AVRDUDE: Write EEPROM bytes without file

Is it possible to write EEPROM bytes via AVRDUDE and an AVRISP mkII directly from the command line without needing an EEPROM file read from another chip? Kind of like how you can specify the fuse bytes directly at the command line. I need to be able…
Adam Haile
  • 1,603
  • 5
  • 31
  • 50
6
votes
1 answer

Programming an ATmega1284p with Arduino IDE and internal RC Oscillator?

I'd like to program an ATmega1284p with my AVR Dragon and the Arduino IDE. So far I have installed mighty1284p (http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/), after writing my (example) sketch I compile it using the Arduino…
Christian
  • 621
  • 12
  • 22
6
votes
7 answers

avrdude error - stk500_paged_write() protocol error

I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this error ... avrdude: stk500_paged_write(): (a)…
user151324
  • 780
  • 3
  • 12
  • 21
6
votes
2 answers

LED- Resistor, does the position matter?

I was reading the MAKE AVR programming. One of the chapters suggests to solder resistor to the cathode side of an LED. But in our uni labs it's said to connect the resistor "before" the LED; that is connect the resistor to the anode. Does the…
Yasha
  • 105
  • 4
6
votes
1 answer

Failing to write ATMega16U4 fuses with avrdude

I'm trying to set the fuses on an ATMega16U4 with avrdude. The first problem I encountered is that avrdude version 5.11.1 does not seem to support ATMega16U4. Someone mentioned on avrfreaks that you should just copy the ATMega32U4 block on…
Dago
  • 910
  • 7
  • 12
6
votes
3 answers

Setting pin to high in function instead of main, not full voltage output?

I have a function which turns on a LED by setting PB1 to HIGH. The light from the LED is barely visible. If I set PB1 to HIGH in my main function the light from the LED is as bright as it should be. It makes no sense to me since it's just changing…
rzetterberg
  • 403
  • 4
  • 12
6
votes
3 answers

Unusual or Strange Behavior: uint8_t in for loop in avr MCU

I am learning programming MCU with c I am using atmel studio 7, averdude, USBasp and Atmega16a this is my code #define F_CPU 1000000 #include #include int main(void) { DDRA = 0xff; DDRC = 0xff; while (1) { for…
Muhammad Nour
  • 527
  • 6
  • 16
1
2 3
10 11