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
32 views

Programming an ATmega644 with 32.768 kHz external clock and USBTinyISP

I accidentally changed the fuse bits on my ATmega644PA chip so that it is expecting a 32.768 kHz signal in the XTAL1/XTAL2 inputs. I am using the a USBTiny programmer (the Sparkfun AVR Pocket ...
0
votes
0answers
32 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
142 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
136 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
123 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
68 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
588 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
292 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
64 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 ...
1
vote
2answers
27k 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
58 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 ...
0
votes
0answers
177 views

Update Mega328 Transistor Tester with Arduino Uno micro controller

I'm trying to update Mega328 Transistor Tester with Arduino Uno micro controller. Here is my Uno and Mega328 connection and Avrdude setting, including particular error: avrdude.exe: verification ...
6
votes
2answers
705 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
57 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
86 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
94 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
117 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
330 views
2
votes
1answer
273 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
3k 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
170 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
1answer
2k 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
139 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
95 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
959 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
1k 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
320 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
308 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
206 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
222 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
193 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
484 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
333 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
1k 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
155 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
253 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 ...
1
vote
0answers
375 views

Flashing MCU using JTAG ICE 3 / Avrdude / Beagle Bone Black

I am in need of flashing ATmega1284P using Beagle Bone Black. I have JTAG ICE 3 connected via USB cable to Beagle Bone Black with Debian GNU/Linux 7 (wheezy). I have compiled version of Avrdude 6.1 ...
3
votes
1answer
10k 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 ...
0
votes
1answer
1k views

avrdude: invalid output file format: -1

I need to read the flash of an atmega8 chip. I program the chip with a working program, verification passes. Then I try to read the chip contents with the command below, and the read fails. ...
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 ...
1
vote
0answers
1k views

Atmega328P is not responding in avrdude using usbasp

I have a cheap Chinese USBASP clone and it works fine with my ATtiny13A, but I always get this: ...
1
vote
1answer
166 views

How Do I Set The Bitclock in a Make File for AVR?

I'm following Chapter 2 of Elliot Williams' book Make: AVR Programming. I'm on an iMac. I get a success message in Terminal when I input: avrdude -p m328 -c usbasp -v -B 10 So, I know that my ...
2
votes
1answer
109 views

Issue with _delay_ms and PORT

Whenever I try to set a certain port to high, then wait some time, then set some other port to high, I get an issue where only the last value would be set. The code I import via USBASP and avrdude is: ...
1
vote
2answers
3k views

ATMega32 USBasp not programming

I use no Arduino just trying to program a simple ATMega32 using USBASP. Getting this message: ...
0
votes
1answer
148 views

No output from programmed attiny2313

I flashed a simple led blink program to an attiny2313 with a usbasp type programmer. Avrdude confirmed that the chip was programed, but the led is not blinking. I tried switching the led, varying ...
2
votes
2answers
227 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:...
0
votes
1answer
305 views

Suddenly cannot flash ATmega328P due to verification failure

For a couple of years I have been flashing some boards I designed that use an ATmega328P using a USBtinyISP and avrdude. I have three identical boards that have been programmed successfully dozens of ...
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 ...
0
votes
3answers
9k views

avrdude: ser_open(): can't open device “/dev/ttyUSB0/”: Not a directory

Recently I have been trying to learn how to program Arduino in Code::Blocks. I used the AVR project wizard to create my project. The program compiles flawlessly into a .hex file that I want to upload ...
1
vote
1answer
1k views

Burning arduino bootloader with avrdude and AVR dragon on ATmega32U4 failing

I am attempting to burn a bootloader on a ATmega32U4 aka. Arduino Micro which is not succeeding. I am using a AVR Dragon with ISP interface. ...