Questions tagged [avrdude]

Programming utility for AVR micro-controllers.

Filter by
Sorted by
Tagged with
0
votes
1answer
64 views

Help understanding how avrdude works with ArduinoISP and why its not working for me

I am trying to use avrdude with a Mega2560 running ArduinoISP Note: I have the 10uF cap on the Mega2560 RESET line as described by Ardunio. Also, I am using avrdude/6.3 on Windows 10. The Mega2560(...
1
vote
0answers
57 views

Arduino UNO R3 clone acting as Arduino Nano

I just got a bunch of Arduino Uno R3 (ATmega328P + CH340).In arduino IDE when i'm selecting board as Arduino UNO then i'am getting this error avrdude: Version 6.3-20171130 Copyright (c) 2000-...
0
votes
0answers
66 views

how to fix USBASP Unknown USB Device (device descriptor request failed) - Win 10?

I just recently purchased Usbasp from Ali Express, when i'm connecting it to the windows 10 desktop in device manager its Unknown USB Device (device descriptor request failed). How to fix this error? ...
0
votes
1answer
78 views

Restoring all fuse bits on AtMega328P-PU

I'm worked with Low Fuse bits in AVRDUDEPROG 3.3. Fuses was non-inverted. And by mistake I enabled SUT1 and SUT0, when SUT0 was enabled. And when I programmed avr, it shows me error that avrdude.exe: ...
0
votes
0answers
17 views

What would cause fuses to be writeable but bootloader not to be writeable?

I am trying to burn a bootloader onto an ATmega328P-AN using an Microcenter knock-off Arduino Uno R3 as my ISP for several days with no luck. The farthest I've gotten is writing and reading a few ...
0
votes
0answers
67 views

Arduino not responding to macbook pro

When I try to upload my code onto the Arduino it just gives me the error message: "avrdude: ser_open(): can't open device "/dev/cu.usbmodem14201": No such file or directory Problem uploading to board. ...
0
votes
1answer
126 views

Cannot upload to Robotdyn Mega 2560 PRO MINI? [duplicate]

I get this error trying to upload avrdude: stk500v2_ReceiveMessage(): timeout It is Robotdyn Mega 2560 PRO MINI and a Robotdyn CH340 which I have connected like this: I installed the CH340 drivers ...
0
votes
0answers
55 views

Avrdude & micro clone

I am trying to program a Pro Micro clone (black PCB, 5v), using this command avrdude.exe -p atmega32u4 -c avr109 -U flash:w:pro_micro_ISP_B6_10.hex:i -P COM3 but this is the (obviously incorrect) ...
1
vote
1answer
224 views

avrdude: Error: butterfly programmer uses avr_write_page() but does not provide a cmd() method

When trying to flash my sketch, I see many errors such as: ***failed; ***...
0
votes
0answers
105 views

Arduino UNO bricked?

How can I figure out, if an Arduino UNO is defect? Have on, which I can't upload sketches to. It's not working on Windows, even on Linux. Everytime the following warning appears: avrdude: stk500_cmd(...
1
vote
1answer
341 views

SOLVED: Strange phenomenon with avrdude: stk500v2_ReceiveMessage(): timeout only with ATmega250 on windows 7x64

I know this problem has been reported multiple times but in my case I think there is a different light on it. My desktop is a w7x64 box and I also have a notebook with w10. Both system have the ...
1
vote
2answers
722 views

how can I upload a hex file to an arduino uno?

I have a Rostock Max 3d with an Arduino Uno as the controller. The OEM has a firmware version I would like to upload, but it is in the hex file format. I have looked all over the Arduino IDE, but ...
0
votes
0answers
195 views

avrdude sometimes fails to read flash after uploading

I'm experimenting a strange problem. when uploading code to my custom designed arduino (it's based on the CH340 usb to ttl) uploads the firmware without problems but most of the times fails to read ...
0
votes
0answers
54 views

Programming ATMEGA328p via AVR Pocket Programmer

I have a ATMEGA328p on a breadboard with the following connections to the 2x3 ICSP connector and its connected to AVR Pocket Programmer. While running AVRDUDE utility, i get the following error, ...
0
votes
1answer
222 views

Avrdude verification error after months of successful use

I have a 2560 that I've been working with for a while (over a year for sure), programming it with an avrisp mk2. No issue this whole time, then suddenly, a couple of days ago it starts failing with ...
1
vote
0answers
453 views

Unable to upload sketch using Platformio (but Arduino IDE works)

I am using an Arduino Nano (Clone) which I was programming with the Arduino IDE (Version 1.8.5 on Mac OS X 10.10.5). Using the Arduino IDE I need to re-plug the Nano before uploading, but after doing ...
5
votes
2answers
7k views

avrdude ser_open() can't set com-state

When trying to upload the blink sketch to my (unofficial) Arduino Uno, I get the following error: avrdude ser_open() can't set com-state for "\\.\COM3" I have programmed this Arduino before using ...
0
votes
1answer
85 views

Arduino Mega upload issue

I have made my own version of an Arduino Mega and I am encountering some issues. Whenever I try to upload any sketch to the Mega, I get the following error message: avrdude: stk500v2 ReceiveMessage():...
1
vote
1answer
50 views

getting started with programming Arduino board in C/embedded c

I want to move away from Arduino IDE and start directly working with avrdude. Can anyone tell me some resources and tips on starting and moving forward with using C/embedded C to access more ...
-1
votes
1answer
223 views

I cannot upload any code to my arduino uno

I am using ardunio uno on a windows 10 machine. I have never been able to upload any code whatsoever. Every time i get different errors, sometimes it's about com port, sometimes about memory, baud ...
1
vote
2answers
2k views

How can I upload .hex files to a Pro Micro using Linux?

I have a hand-wired keyboard that uses a Pro Micro board, with an ATmega32u4 chip. I can't seem to flash firmware on it. The commands I've been trying are variations of: avrdude -p m32U4 -P /dev/...
0
votes
1answer
985 views

Set avrdude transfer baud rate in Arduino IDE

I just got an Arduino nano (from arduino.cc, not a knock-off), and have issues uploading sketches. It refuses to upload, with the error message "programmer is not responding". Some searching led to ...
0
votes
1answer
665 views

Avrdude verification error

I use an Arduino UNO with IDE 1.8.5 and for the last few days it doesn't let me upload any code. When I try, it pops up with the following error: avrdude: verification error, first mismatch at byte ...
0
votes
1answer
74 views

compare two hex files

I need to check if the code burned on the some Arduino is the same one as I have. I know how to get the hex file from the Arduino. My question is what influence the hex code? Board Type? ...
1
vote
1answer
247 views

USBasp problem: could not upload sketches to Arduino clone with PL2303 USB-to-UART chip

I'm trying to upload sketch to a Gizduino board (these boards have PL2303 chip for USB-to-Serial communication; other than that they are entirely similar with Arduino Uno). I have installed the ...
0
votes
1answer
381 views

Avrdude can't connect to butterfly programmer

I'm trying to upload my exported HEX file by avrdude using this command /Users/user_acc/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Users/user_acc/Downloads/Arduino.app/...
0
votes
1answer
456 views

avr_g++ compiler error: expected primary-expression before '.' token (C code in .ino)

The compiler is complaining about a macro defined in mjson.h Documents\Arduino\libraries\microjson/mjson.h:135:28: error: expected primary-expression before '.' token #define STRUCTOBJECT(s, f) ....
1
vote
0answers
57 views

Can't reprogram Arduino on protoboard (perfboard), but could program the same circuit on breadboard

So I have a circuit that works well when it's on a breadboard and without removing any pins I'm able to upload sketches, but for some reason when I transition it to a protoboard I can no longer upload ...
0
votes
1answer
100 views

Can the arduino be recognized if the usb chip is broken?

My question might seem one of the million questions out there "Can't upload to arduino uno and receive error avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x01" but as I probably read ...
-1
votes
2answers
321 views

I am Using Arduino Lilypad . I am trying to upload but it shows Programmer Not Responding [closed]

Error Log: avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x0d avrdude: stk500_recv(): programmer is not responding avrdude: ...
1
vote
0answers
585 views

Arduino nano stk500_getsync() attempt 1 of 10: not in sync: resp=0xe1

I have been building a project using an arduino nano clone. It uses the CH340 chip. It worked perfectly, and a week later it now doesnt. When I want to upload code in arduino IDE I get the error ...
1
vote
0answers
326 views

Will avrdude overwrite the bootloader on my Nano?

I bought an arduino nano (knockoff from Elegoo) and according to the Amazon description it comes with a bootloader. From what I've read, this means that programming can occur over the usb connection ...
1
vote
1answer
147 views

Errors trying to set fuses on bare Atmega328p

I have an Atmega328p on a board that I want to program using an Arduino programmer. I've got the programmer working to program other Arduino's over ICSP header, but when trying to use the same ...
0
votes
0answers
647 views

Programming with Atmel ICE from Arduino IDE unbearably slow

I am using the Atmel ICE programmer to program an ATTiny84. Doing that from the Arduino IDE takes more than 10 seconds. Calling avrdude from the shell is 5x faster. How can I speed up Arduino IDE's ...
1
vote
2answers
2k views

ATTiny85 Digispark clones failing USB handshake - how to program them?

I've recently bought a batch of ATTiny85 modules (Digispark clones) from China, and tried to write a first test program into them now. I noticed that they do seem to have some bootloader already ...
0
votes
3answers
448 views

avrdude flash issues

I want to burn a hex file to a custom ATmega2560 board. I use this USBasp programmer for flashing (firmware version 1.01) on my Mac OS X 10.12.6 system. All hex files are compiled with avr-gcc (GCC) 4....
0
votes
0answers
80 views

Bootloader fails when two Arduinos are connected over serial port

I’d like to connect two Arduinos over serial port so that they can communicate with each other. Initially, I put all necessary code onto one device and now connected another via serial port. As soon ...
1
vote
2answers
466 views

Error when trying flash bootloader into Arduino Pro Mini 328P 8MHz 3.3V

I tried flash bootloader into Arduino Pro Mini 328P 8MHz/3.3V clone, but got error. First I did test: ~$ avrdude -c usbasp -p m328p avrdude: AVR device initialized and ready to accept instructions ...
0
votes
2answers
357 views

Arduino pro mini not compiling after changing fuse to 128khz

I used Arduino UNO as ISP to change the fuse setting of Arduino Pro Mini. Using avrdude cmd, I successfully changed it to 8MHz setting. Due to curiosity, I decided to try changing it to 128kHz. But ...
0
votes
1answer
100 views

The Wire library and an ATTiny88 MCU

This is the MCU: http://www.microchip.com/wwwproducts/en/ATtiny88 - it advertises a hardware I2C interface, but I am struggling with it. It is mounted on my own board (which worked fine if I dropped ...
1
vote
1answer
526 views

Avrdude Verification Error while flashing Arduino Mega code

I'm working with an Arduino Mega 2560 and am getting the following error at compile time: avrdude: verification error, first mismatch in byte 0x0000 0x14! = 0x25 avrdude: verification error; ...
1
vote
0answers
561 views

Cannot upload sketches, and loopback test fails, but bootloader is intact and correct

I was using an Arduino Uno for a project, when suddenly it stopped allowing me to upload sketches. I kept getting the error message: avrdude: stk500_recv(): programmer is not responding avrdude: ...
0
votes
1answer
252 views

Arduino IDE missing libread.s0.6

I just recently installed the ESP8266 libraries on the arduino IDE using the boards manager, the code compiles fine with the ESP, but when the board is changed to UNO, i get this error, opt/arduino-1....
0
votes
1answer
365 views

Issues uploading to atmega324pb w/ adruino as ISP

I've been having some issues programming a new atmega324pb I have on a custom board. I set up an old adruino UNO as an ISP by uploading the ArduinoISP sketch, setting the programmer to "Arduino as ISP"...
0
votes
1answer
420 views

I bought ATmega328p with bootloader and I can't erase it

I bought an online deal which had 10x ATmega328p with bootloader installed. I thought I can erase the bootloader once I got the order (I want to write custom task without a bootloader) but my ...
1
vote
2answers
2k views

Can't open “COM1” on Linux with Trinket Pro

At work, on a Ubuntu 14.04 system, I can access my Trinket Pro without any difficulty whatsoever. At home, using either Linux Mint or Ubuntu across two laptops, I can not communicate with the device ...
2
votes
2answers
775 views

programming arduino in pure c

I'm trying to flash pure c-code to arduino Mega2560 board from linux using avr-gcc & avrdude. Compilation is done , now trying to flash using avr-dude, getting error as "avrdude: stk500_recv(): ...
1
vote
3answers
280 views

What if I have burnt my atmega328p?

Actually I am facing a big problem while programming my atmega328p using an arduino uno as ISP. I followed a video on youtube "Arduino as ISP" by Notes and Volts. Which look doing the same steps ...
0
votes
1answer
297 views

TWI Wire.setClock() on non arduino AVR MCU issue

Using an Atmega168P - programmed by means of avrdude with the .hex file generated by Arduino IDE. The following code sets the 8 MHz Atmega's TWI interface to just 15.625 kHz: Wire.begin(); // ...
0
votes
1answer
463 views

Upload of sketch with avrdude stuck only outside of IDE

When uploading my sketch to my Genuino Micro with the Arduino IDE, everything works perfectly. This is the command issued: C:\Users\<user>\AppData\Local\Arduino15\packages\arduino\tools\avrdude\...