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

Why does compiler optimization flag cause function definitions other than main() to break program in AVR ATMega C code?

I am using avr-gcc and avrdude to write programs onto an ATMega8515 micro-controller. I have got the blinking LED program working without a hitch. However, when I started to use interrupts and ...
cornelius's user avatar
  • 253
1 vote
1 answer
34 views

Cannot upload to Atmega328p twice in a row

I've successfully burned a bootloader to my Atmega328p via the SPI interface, and then used this CH340 and a level converter to successfully upload code to the chip. However, every time I upload code, ...
Gary Allen's user avatar
1 vote
0 answers
132 views

avrdude OS error: file not readable invalid argument

I decided to get into the world of "naked" microcontrollers (started with Arduino), found an ATtiny 85 among my parts and an USBasp and decided to first make a blink sketch. Did everything ...
Post Fah's user avatar
1 vote
0 answers
34 views

Issues with AVRISP MKII programmer

I am trying to program ATtiny10 using AVRISP MKII programmer and AVRDUDESS, spend 2 days trying to flash it but had no luck. Now I came up with a few issues regarding AVRISP MKII programmer, which ...
Dominykas's user avatar
  • 335
0 votes
0 answers
51 views

AT90USB1286 bricks after disabling clock divider

I have an AT90USB1286 which is connected to a 16MHz external crystal oscillator. It is my understanding that by default from the factory the CKDIV fuse is enabled which makes the chip run at an ...
00728M's user avatar
  • 15
0 votes
2 answers
131 views

ATmega32u2 example circuit sanity check

I'm working on a project and have decided to make it with the ATmega32u2. In the process I am trying to make an ATmega32u2 breakout board which only has the required components to run the device (...
daannn's user avatar
  • 15
1 vote
1 answer
562 views

AVRDUDE verification error

I've been working with AVR microcontrollers (specifically with ATmega328p's) for a bit and I got an ATmega32u4 that I wanted to program it to be used as a USB peripheral. However there is one problem: ...
unkow's user avatar
  • 31
0 votes
1 answer
88 views

How does the ATMega32 know that the incoming SPI data signals are the program to be burnt?

From my understanding, in order to burn a C program to the ATMega32's flash memory, the program is first compiled and converted into a hex file which is then uploaded using a computer program such as ...
Fudge Racoon's user avatar
2 votes
2 answers
345 views

How to do a factory-reset on an AVR micro-controller?

I'm programming an ATmega32 chip, and have set some bits as 1 in some DDRs and PORTs. In case I forget what bits I had set to 1, is there a way to set all the register bits to a value(1 or 0) that was ...
Somanna's user avatar
  • 317
1 vote
1 answer
107 views

Why does AVRDUDE require part ID as an input parameter when it detects the device signature by itself?

When I type the following in terminal avrdude -p m32 -c usbasp I get the following as output ...
Somanna's user avatar
  • 317
0 votes
2 answers
311 views

External RC oscillator fuse programmed instead of external crystal fuse

Is there anyway to revive an Atmega8A? avrdude says avrdude: error: program enable: target doesn't answer. 1 ever since I ...
kellogs's user avatar
  • 1,060
0 votes
1 answer
543 views

Clone ATtiny13A flash memory using USB ASP programmer

I hope you are having a great day. May I kindly ask for a word of advice from the veterans in this field of Atmel micro-controllers? I am a novice getting into knowing things by hands on training ... ...
nexus.so's user avatar
0 votes
2 answers
215 views

Invert Avrdude signal for Reset pin

Good day all, I have a bit of a pickle on hand. I have a project where we would like to use ICSP to program an atmega328p. We can do this quite easily using Avrdude with a custom config file, however, ...
TheMAX135's user avatar
  • 147
1 vote
1 answer
465 views

Can't connect to Atmega328p with avrdude

I'm trying to connect to a pretty old Atmega328p that was sitting on a solderless breadboard for years. I'm using a TinyUSB programmer that also powers the MCU. When I try to connect to it, I have the ...
Nicolas Appriou's user avatar
2 votes
1 answer
300 views

Programming AT89S8252 with Avrdude

I've been using the below avrdude.conf segment for an AT89S8253 (https://www.edaboard.com/threads/avrdude-and-at89s8253-conf-file.76766/) as a starting point for an AT89S8252. I've struggled to find ...
user3424480's user avatar
0 votes
1 answer
660 views

Wrong device signature for ATmega32A-PU while burning MightyCore bootloader

I'm trying to install the MightyCore bootloader into an ATmega32A-PU chip but I'm getting the following error when I press the "Burn bootloader" button on Arduino IDE: ...
Ian Liu Rodrigues's user avatar
1 vote
1 answer
74 views

FT230XS is not in sync when trying to burn bootloader

I want to use FT230XS IC to translate UART to USB, as a cheaper alternative to FT232RL, which I use for years now. The MCU I use is an Atmega328p-au (so the same configuration as an arduino), and I ...
Christianidis Vasilis's user avatar
2 votes
1 answer
165 views

Unusually long programming times with ATmega328p

I'm programming an ATmega328p using avrdude, and with a program size of 3074B, I am experiencing approximately 13 seconds of programming time. This is painfully slow when developing with the ...
Kalcifer's user avatar
  • 235
0 votes
2 answers
734 views

How do I get started in C using avr-gcc on the mega2560 [closed]

I've program the arduino using tools before (on windows) and using C++ but never with c++ without tools nor done it on linux I have a (at)mega2560 and want to do a simple blink program like the below <...
Eric Stotch's user avatar
2 votes
1 answer
195 views

Can't program ATmega with ICSP on custom pcb

I'm fairly new to PCB design, and I've been trying to program the microcontrollers on the board I designed with no luck. The board uses an ATmega32u4 and an ATmega328P. I've been trying to program ...
Trey Jenkins's user avatar
1 vote
0 answers
186 views

ATmega328P presumably dead after probable SPI short circuit

I am trying to use an ATmega328P to interface an SPI device (RFM95W radio module). This worked pretty well (I could measure the correct signals on SCK, MISO, MOSI and CS), but after some programming ...
Benedikt Neumayr's user avatar
1 vote
1 answer
207 views

Attiny13 affects USBtiny programmer logic voltage levels

I wanted to port a simple program from an Attiny85 to the cheaper Attiny13. To make sure everything would work properly I started trying to upload a simple blink program to the MCU but could not get ...
jjpprr's user avatar
  • 163
0 votes
0 answers
210 views

Bricked Mega2560 - avrdude gets only zeroes

On a Creality CR-X 3D printer (mainboard based on Atmel Mega2560-16u), an upgrade of the firmware had first failed before end when uploaded by Cura slicer via USB. After the fail, the printer became ...
Seki's user avatar
  • 101
0 votes
0 answers
463 views

Atmega328p FT232RL invalid device identifier

I have this little guy and I want to read it's code, edit it and rewrite This guy fortunately ready and as far as I found out equipped with Atmega328p and FT232RL I have: Centos 8, Arduino IDE, ...
qpaycm's user avatar
  • 101
1 vote
2 answers
303 views

Programming my ATmega8 board using Arduino IDE

I made a board with an ATmega8A (SMD-TQFP package). I installed the minicore library in the Arduino IDE. Now I'm able to flash the hex file using Atmel Studio 7 and able to read serial well. But my ...
khoder akel's user avatar
0 votes
1 answer
464 views

Avrdude Does not Read What it Wrote Correctly

Question I am getting back into Atmel AVR programming after nearly a decade off. To this end, I am trying to get the usual blinken lights demo working. Unfortunately this does not function, though ...
MysteryMoose's user avatar
1 vote
2 answers
539 views

ATTiny1616 writing the SUT fuse in SYSCFG1 with AVRDude Command Line

I want to write the SUT fuse in SYSCFG1 to be 0x0 for 0ms startup time as per page 40 of the datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/ATtiny1616-3216-DataSheet-DS40001997C.pdf I am ...
John's user avatar
  • 131
1 vote
1 answer
288 views

AVR ATtiny1634 - Programming Issue

I've have already used Arduino as ISP Programmer to load codes to Atmel chips like ATmega328p and ATmega8 quite a few times without any problem. On my last project though, I decided to use an Atmel ...
Roga's user avatar
  • 35
1 vote
2 answers
755 views

ATMEL STUDIO: avrdude.exe: ser_open(): can't open device

I just followed all the instructions to set up Atmel Studio on a new computer for the ATmega2560. Bare in mind that I have already had Atmel Studio installed on another computer where it worked fine, ...
user164324's user avatar
0 votes
0 answers
153 views

atmega328p is not detecting on USBasp programmer after verify 0 error?

I was trying to burn my atmega328p board which is designed for some wireless application. The ICs atmega328p, esp8266 12f, and ADM7171 are using the same Vcc. Here the Power supply is connected to ...
mcv's user avatar
  • 15
0 votes
1 answer
163 views

(Noob question) Placing parts of a byte in different (parts of) registers

Background: I'm trying to get a gLCD working with an Atmega328p. I got it to work quite easily, but there was one catch: the library that I found, used portB for the datapins. This was unacceptable, ...
Opifex's user avatar
  • 505
0 votes
2 answers
1k views

atmega328pb mcu gets bricked after uploading bootloader

i have a strange problem, maybe this post will be long, but i try to give all the details: i’ve designed a pcb with smd components, around the atmega328pb mcu. it uses an external 16mhz clock and has ...
Wanek T's user avatar
  • 15
0 votes
1 answer
195 views

What could cause a microcontroller on a board not to accept programming?

EDIT: To summarise - when I take the microcontroller off the board, it works. But when I leave it on the board and try to program it, I cannot. I have designed a PCB and had it fabricated. This PCB ...
Sod Almighty's user avatar
  • 1,304
0 votes
1 answer
361 views

Failing to Program AT90CAN128

I've made a custom board with an AT90CAN128, and I can't get my USBTinyISP to connect to it. I've verified the programmer is good, as it connects to a 328p and a AT90CAN128 on a dev board fine. I ...
Jeff's user avatar
  • 201
2 votes
2 answers
10k 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 ...
Jacob Garby's user avatar
2 votes
1 answer
2k 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 ...
Zulakis's user avatar
  • 121
0 votes
1 answer
165 views

How do you add an onboard ISP for an ATTiny85?

I've taken a liking to building circuits around the ATTiny. Typically I add 6 headers and use an AVR programmer or an Arduino to program the ATTiny in circuit. I'm trying to figure out how move that ...
D. Patrick's user avatar
5 votes
4 answers
128k views

AVRDUDE does not recognize USBasp device

I'm am having issues with my USBasp programmer (Windows 10). I installed the WinUSB driver using zadig 2.4. When I run AVR dude with the following parameters ...
bas's user avatar
  • 541
0 votes
0 answers
173 views

AVR ATmega328 low fuse wrtiten and issue

I am using an Arduino Uno as the hardware programmer together with avrdude as the software programmer for flashing an Atmega328. I have noticed PB0 was set to ...
kellogs's user avatar
  • 1,060
6 votes
2 answers
994 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 ...
Yasha's user avatar
  • 105
0 votes
1 answer
184 views

Can't upload sketch to my custom designed arduino Uno

I'm having problems uploading sketches to my custom arduino uno design. I have a ttl to usb based on the ch340 and at the same time I have a RS485 transcriber both conected to the atmega328 serial ...
Marc's user avatar
  • 491
0 votes
1 answer
214 views

Have I bricked my ATMEGA3328p by setting

I was playing around with setting the "system clock prescalar" (CLKPR). I'm now in a situation where I can see that the clock is 244.9KHz, using my logic analyser and the "Clock output on PORTB0" ...
fadedbee's user avatar
  • 994
0 votes
1 answer
155 views

AVR programming

This question might be asked somewhere, if so all references would be appreciated. Hello, I have programmed Atmel chip Atmega32U4 through USB. It is possible because it supports USB programming. I ...
Mini Tamm's user avatar
-2 votes
1 answer
280 views

What command is sent from AVRDUDE to an AVR programmer for programming ATmega8

I have implemented an IoT ATMEL AVR Programmer based on protocol stk500, and I successfully connect with it wirelessly and program any ATMEL AVR Programmer through Arduino IDE, My Question is: I need ...
Ahmed Ahmed's user avatar
0 votes
2 answers
1k views

avrdude problem with sck , how to recover locked avr with external clock fuse bit

I wrote this code: ...
Baba's user avatar
  • 125
4 votes
1 answer
478 views

ATMega328P Programs at 2V but not at 1.8V

I'm perplexed by this one: I'm trying to run my ATMega328P at 1.8V. The voltage at the chip (pin 4 and 21) sits at 1.82V (BK Precision Multimeter). When using the AVRISP mkII, the programmer LED ...
dramsay's user avatar
  • 51
1 vote
2 answers
6k views

Configure avrdude for programming with a ft232r cable

I bought a ftdi cable with the following pins. Vcc GND RX TX RTS CTS It's possible to use this device to upload code to an ATmega328p using the avrdude utility? When I run this line on linux ...
Oshio's user avatar
  • 31
1 vote
1 answer
249 views

Arduino Nano ISP turns into the target program (as well as target MCU)

I'm trying to use a Nano V3 clone as an ISP to program atmega328p's because I have not dedicated programmer yet. As part of troubleshooting I'm just trying to program another breakout board with ISP ...
Viktor Hedefalk's user avatar
0 votes
2 answers
5k views

usbasp with avrdude: error: program enable: target doesn't answer. 1

I purchased a "usbasp" programmer from AliExpress for use with my ATtiny84A AVR devices. This has the text "USBASP V2.0 LC Technology" screenprinted on the top of the PCB, and it looks very much like ...
davidA's user avatar
  • 101
0 votes
1 answer
274 views

error programing atmega32 lock bits

I am trying to use lock bits for protection on atmega32.I am not being able to write lock bits to it its giving me verification error while doing it.Can you tell me correct way to do this? This is ...
shubham 's user avatar