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
0
votes
0answers
41 views

Can't burn bootloader or upload code through Arduino IDE to attiny85 using USBasp

I've wired everything up on a breadboard using the datasheet of the attiny85 and the 10 pin layout of the isp programmer, installed the libusb-win32 USBasp driver through ZADIG, and setup attiny85 ...
2
votes
1answer
62 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 ...
0
votes
0answers
36 views

Avrdude on Big Sur M1

I have avrdude 6.3 installed from Homebrew on Big Sur on M1 chip. When trying to run: ...
0
votes
0answers
20 views

Cannot upload sketech to uno by upload using programer in one usb port

When i connected usbasp to uno spi. Its mcu got detected by avrdude but i cannot upload sketch to it using arduino ide. I tried by upload using programer but i got an error "could not find usb ...
0
votes
2answers
90 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 <...
2
votes
1answer
103 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 ...
1
vote
0answers
92 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 ...
1
vote
1answer
95 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 ...
0
votes
0answers
63 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 ...
0
votes
0answers
149 views

How do you use a EZP2019+ programmer with an ATTINY85 with avrdude?

I need to burn micronucleus on the ATtiny and only have an EZP2019+ programmer and I also need to set the ATtiny to 16MHz clock speed, how do I do that?
0
votes
0answers
222 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, ...
1
vote
2answers
174 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 ...
0
votes
1answer
163 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 ...
1
vote
2answers
187 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 ...
1
vote
1answer
178 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 ...
0
votes
1answer
260 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, ...
0
votes
0answers
64 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 ...
0
votes
1answer
150 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, ...
0
votes
2answers
784 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 ...
0
votes
1answer
131 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 ...
0
votes
1answer
157 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 ...
2
votes
2answers
5k 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
918 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 ...
0
votes
1answer
96 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 ...
3
votes
3answers
80k 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 ...
0
votes
0answers
99 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 ...
6
votes
2answers
875 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 ...
0
votes
1answer
143 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 ...
0
votes
1answer
154 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" ...
0
votes
1answer
113 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 ...
-2
votes
1answer
199 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 ...
0
votes
2answers
685 views
4
votes
1answer
407 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 ...
0
votes
2answers
5k 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 ...
1
vote
1answer
208 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 ...
0
votes
2answers
4k 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 ...
0
votes
1answer
176 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 ...
-4
votes
2answers
98 views

i have a problem with my school project?

i'm working on a school project "Android control a robot car via Bluetooth" with temperature sensor "LM35" , gas detector "MQ-2" ,motor drive IC "l293D" and Bluetooth module "HC-05" using atmega 32 . ...
0
votes
0answers
1k views

What does avrdude "programmer is out of sync" mean?

Lately, I've been getting a lot of "programmer is out of sync" messages while uploading to a microcontroller (ATMega328p). I am very clueless here as the uploading ...
1
vote
1answer
2k views

Atmel Studio 7 Custom Build Tool Output

I've recently switched over to Atmel Studio 7 (AS7) for one of my AVR projects and after a bit of fiddling around have worked out how to get the "Custom Programming Tool" to correctly upload compiled ...
-1
votes
1answer
583 views

Unable to ISP program my ATtiny85 with Atmel ICE [closed]

I'm trying to program my ATtiny85 with Atmel ICE but I get this error: avrdude: stk500v2_command(): unknown status 0xcc avrdude: initialization failed, rc=-1 Double check connections ...
2
votes
1answer
588 views

avrdude - how to only write to device?

I've been using the avrdude for quite some time to burn my atmega mcu's. The read / write operations are fast if the code is ...
1
vote
0answers
249 views

Software flashing attiny167 from RPi with avrdude

I am trying to flash a program onto an attiny167 (already bootloaded with the micronucleus bootloader) with a Raspberry Pi via avrdude and USB. Background I have 50 Raspberry Pi 3B's connected to an ...
2
votes
1answer
246 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, (...
-3
votes
2answers
227 views

i'm using atmega32 to do an automatic railway gate project i wrote the code ,but i have a problem with it that it doesn't give me the required output? [closed]

I've a school project "automatic railway system ", i wrote the code but it works only on protues . when i burn it on the kit it doesn't work . what is the wrong with this code ?? "my project idea ...
1
vote
0answers
677 views

atmega328p not responding to avrdude

I have this prototype pcb with an atmel avr atmega328p on it and it doesn't respond correctly to my AVRISP Mk2. From what i can tell the signature is wrong for that part. Here is the output from ...
0
votes
1answer
415 views

ATtiny13A cannot be programmed anymore with Arduino as ISP at 500 Hz

My ATtiny13A fuses are set to use the internal 128 kHz clock without clock divided by 8. I found online an ArduinoISP sketch that allows me to program it with that clock speed. But then I uploaded ...
0
votes
2answers
2k views

Can't write lock bits on ATMega328p-pu

I'm trying to set the lock bits on my ATMega328p-pu, using an Arduino UNO as an ISP. this is what happens: ...
0
votes
1answer
162 views

ATmega1284 behaving erratically

My ATmega1284 MCU appears to behave strangely in a number of ways. I know, I'm nuts, but here it goes... I'm using a usbtiny AVR pocket programmer with avrdude on Ubuntu Linux 15.10. I am wondering if ...
0
votes
2answers
312 views

Atmega was loose during programming, now target doesn't answer, and device signature keeps changing

I'am using an atmega328p with a custom build programming board connected to an usbasp. While programming with arvdude, the atmega chip was not perfectly placed in the board header, and the atmega ...