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.

Filter by
Sorted by
Tagged with
22
votes
4answers
2k views

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 ...
8
votes
4answers
19k views

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 ...
8
votes
3answers
1k views

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 ...
8
votes
5answers
4k views

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 ...
8
votes
1answer
4k views

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 ...
7
votes
1answer
12k views

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 ...
6
votes
2answers
718 views

LED- Resistor, does the position matter? [duplicate]

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 ...
6
votes
3answers
4k views

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. ...
6
votes
3answers
3k views

Bit bang ATmega328 with Arduino bootloader using AVRDUDE

I have an Arduino Uno development board with a blank ATmega328 chip (no Arduino bootloader. The chip that came with the unit is soldered in a separate stand-alone project so that I can use the Arduino ...
6
votes
1answer
4k views

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 (...
6
votes
7answers
24k views

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 ...
5
votes
3answers
1k views

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 ...
5
votes
2answers
2k views

Does Arduino need the bootloader if programmed with programmer?

I am trying to program a few Atmega328 (not Atmega328p) with an ICSP. These are TQFP. What I am trying to do is to upload the program to a fresh chip without having to first load the bootloader. I ...
5
votes
1answer
7k views

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 ...
5
votes
2answers
6k views

avrdude -B 3 parameter

I'm new to AVR programming, I got this atmega8A chip and I use avrdude with a USBasp that I made myself, for programming it. For some reason the chip won't answer if I don't use the ...
5
votes
1answer
3k views

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 ...
5
votes
1answer
11k views

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 ...
5
votes
4answers
6k views

Programming an ATtiny 85 with Arduino

I followed this tutorial and got the following error when trying to compile upload the attiny85 sketch: avrdude: usbdev_open(): did not find any USB device "usb" ...
4
votes
4answers
7k views

Why does my AVRISP MKII Programmer not work?

I am using Ubuntu and I am trying to upload a hex file (called src.hex) to my ATtiny85 with my AVRISP MKII programmer with avrdude. But I get a strange error. I run ...
4
votes
2answers
11k views

Burn Micronucleus bootloader to use ATtiny85 via USB (AVRDUDE)

I am working on an ATtiny85 USB development board, and I need to flash the Micronucleus bootloader on it. I have heard that this bootloader allows the ATtiny85 to be programmed via USB from the ...
4
votes
3answers
3k views

Using Arduino to program Amtel AVRs via ICSP header

I have an Arduino (NG) board with an ATMEGA168 AVR micro. The board has a 6 pin ICSP header. Here is what I propose to do, please tell me if it is possible: Remove current ATMEGA168 IC Replace with a ...
4
votes
4answers
21k views

How can I tell that USBasp is working?

I have the USBasp programer and I'm trying to burn bootloader on Atmega328 so that it can be used as a replacement chip in Arduino board (replacement chips with the bootloader installed are quite ...
4
votes
2answers
168 views

Global Array Size Affects Clock Frequency Only On Linux (avr-gcc)

I am having the most peculiar problem. When the size of a global array changes, it alters the clock frequency of the ATmega164a. This is on Linux. When compiled on Windows, this problem doesn't occur (...
4
votes
2answers
9k views

Programming a ATmega328P on a breadboard - programmer cannot connect

What I am trying to do is program the ATmega328P on a breadboard. I have followed the schematic by which the Duemilanove board was wired to no avail. I have a SparkFun AVR Pocket Programmer that ...
4
votes
4answers
7k views

AVR Atmega32 flash verification error

I just got an Atmega32A chip and I've been trying to program it with a usbasp for quite a few hours. I can change the fuses and write the program, but verification fails. I'm getting this message ...
4
votes
1answer
3k views

Arduino Diecimila (ATMEGA168) + JTAG ICE MKII Hell..Did I Fry the Chip?

Two weeks ago, I pulled out my AVR JTAG ICE MKII and successfully burned a few C programs to my Arduino through AVRStudio 4 SP3. Everything was working very well. Life caught up to me and I did not ...
4
votes
1answer
9k views

Arduino's “Upload Using Programmer” for ATmega328 (not ATmega328P)

I am using the the Atmega328 (not the Atmega328P that is standard with Arduino) on a breadboard version of the Arduino. I am able to get the bootloader on the Atmega328 using these instructions. In ...
4
votes
1answer
799 views

AVRDude not reading fuses in Eclipse with USB attached STK600

I can successfully burn programs using my USB connected STK600 through Eclipse/AVRDude. From the command line, I can read fuses (using: ...
4
votes
1answer
973 views

AVR Flash Writing Error

Got a very strange error while trying to write to ATmega128. Below are the results for 3 cases (using different software but the same USBASP programmer and the same HEX file) Case 1 : AVRDUDESS 2.3: ...
3
votes
1answer
2k views

Fuse Bit settings in ATmega128 Micro controller

I am working with ATmega128 board. The datasheet states ATmega128 is by default shipped in ATmega103 compatibility mode In ATmega103 mode, the MCU both serial communications cannot be used and ...
3
votes
5answers
6k views

Arduino Mega 2560 stuck at uploading

I have two Arduino Mega 2560 boards, both gives errors when trying to upload sketches (I bought the second board thinking its a fault with the first one, but same thing happen with the new board). ...
3
votes
3answers
3k views

AVR AtTiny84 is stuck on 128kHz clock, avrdude + Arduino as ISP can't reach it

While experimenting with the power consumption of different clock rates by setting fuse bits, I seem to have irreversibly programmed an ATTiny84 chip to the 128kHz internal oscillator, and now avrdude ...
3
votes
4answers
20k views

ATmega 8: target doesn't answer 1

I am trying to connect my atmel atmega8 with usbasp (V0.2) to my PC. I follow this tutorial to connect my atmega to usbasp. I have a 6-pins connector: ...
3
votes
1answer
4k views

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 ...
3
votes
1answer
3k views

Setting up an external clock source on an ATmega8

I am attempting to set up V-USB on my ATmega8-16PU (datasheet), and could use some help hooking up an external crystal clock source to it. I have tried to understand the datasheet to the best of my ...
3
votes
1answer
1k views

programmer is not responding with stacked shields

I keep getting the following error when trying to upload my code with the Arduino IDE: avrdude: stk500_recv(): programmer is not responding I stacked the ...
3
votes
1answer
2k views

Error while uploading hex file to AVR uC

I am trying to upload a hex file to an ATtiny85 from Ubuntu by running these commands: ...
3
votes
1answer
322 views

LED remains off on ATmega16

I wrote this simple program: #include <avr/io.h> int main(void) { DDRA = 0xff; PORTA = 0xff; while(1) { } } When I program it to my brand new ...
3
votes
2answers
10k views

Problem programming ATTiny85 “Invalid device signature.”

I am trying to program ATTin85 using Arduino I used the hardware support file from "High-Low Tech" here http://hlt.media.mit.edu/?p=1695 With this schematic: After downloading the ArduinoISP sketch ...
2
votes
3answers
8k views

Blinking LED with ATMega8 won't blink

As I'm a complete novice, I thought I'd start with something really simple: making a led blink. According to several websites, this is something everyone should be able to do... Hmmm... In my case, ...
2
votes
1answer
1k views

AVRdude: AVR Part “ATmega16A” not found

I'm trying to write my first program to ATmega16A but I have an error: avrdude: AVR Part "atmega16a" not found. But actually I've changed the chip with a similar ATmega16A and I'm sure that the ...
2
votes
1answer
2k views

ATMega644PA possibly bricked by setting fuses with avrdude

I have been programming an ATMega644PA with avr-gcc and avrdude on linux for a little while with no problems. Well until I decided to change some fuses. I had been using the option for avrdude ...
2
votes
2answers
774 views

How can I program an Atmega32u4 over USB with this schematic?

This is my first time trying to program an Atmega32u4. I made a PCB with the following schematic: Now I've soldered all the parts onto the PCB, and I've plugged a micro usb cable from my computer ...
2
votes
1answer
227 views

ATmega328P firmware flashing interrupted - is it fixable?

I am working on some PCB with an ATmega328P on it. I use a Pogo connector because we have to program and test the PCB outside. I program with usbTiny, (...
2
votes
2answers
233 views

Difference in size of input and output to avrdude

When I download a .hex file using avrdude, I'm seeing a difference between the input and output size. For example, the size of the .hex file is 856 bytes, and what I see in the message is '... avrdude:...
2
votes
2answers
5k views

Atmega328p, avrdude and setup

I'm starting to learn how to program micro controllers. This is my current setup. When I'm trying to flash a Hello World program with AVRDude I'm getting the following message: ...
2
votes
1answer
478 views

Cannot program ATTiny85 fused for 32 kHz

Now, I know what you're thinking. I've been thinking it all night too. Yes, I know that with the tiny fused for a 32 kHz crystal that I'll need the SPI clock to be 8 kHz or less. Even that, however, ...
2
votes
2answers
7k views

avrdude error - stk500_getsync(): not in sync: resp=0xff

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 ...
2
votes
1answer
3k views

Is it possible to use openocd to program an atmega using an AVR ISP (mk2)?

I have an ATMega2560 on a custom board which I want to program with my AVRISP mkii. I have successfully programmed it using the Arduino IDE, and also over the commandline using avrdude. Is there a ...
2
votes
1answer
360 views

Bricked ATMEGA328PB by setting low fuse to 0xF5 - How to recover?

While programming an ATMEGA328PB via ISP, I wanted to set the efuse to 0xF5. By accident, I didn't write the efuse but the lfuse instead. Since then, I cannot communicate with the chip via ISP ...