11

I soldered wires to pads to be sure the connection was good, and used those wires for programming from the Uno. Then the programmer worked, without any edits to the command lines as posted in the question. I ran a few variations and was able to answer all my questions, and a few more besides: The "Yikes! Invalid device signature" error was being caused by ...


7

After poking around for a bit more, it turns out my problem was the baud rate. I could make it work by setting it to 19200, just a little slower. Alternatively, you can modify the ArduinoISP sketch to enable higher baud rates. I used this post to enable 115200 baud and I was able to successfully use avrdude at the higher rates. Not sure how I missed this ...


5

I recommend going out and buying an AVR Dragon - costs aroud $US50. That gives you ISCP programming plus debugwire debugging (using the Atmel Studio IDE).


5

First of all, as configured, the RESET pin can not be used as an output pin. In order to use it as an I/O pin, you would have to program the RSTDISBL fuse. But once you do that, as jippie said, it becomes near-impossible to reprogram your Arduino (if you have the socketed through hole variety of the MCU, you could pull it out and put it into a high voltage ...


5

It is possible to skip the Burn Bootloader step. When you do Upload Using Programmer the bootloader is overwritten and thus serves no purpose. However, there is another reason for the Burn Bootloader step, to set the correct fuses for your board selection. The fuse settings configure things on the ATmega328 such as clock speed and clock source. If the ...


4

The bootloader only enables serial programming of the device; it is perfectly possible to run Arduino programs without it provided that the code is compiled with the same hardware options (MCU model, clock speed, etc.) that the standalone device/board uses.


4

I had exactly this problem. If the ATtiny is set for external clock, then the ArduinoISP will not be able to program it without an external crystal. Connected a 16 MHz crystal and 2 capacitors and worked perfectly. (I was then able to set ATtiny to internal clock, remove the crystal, and then worked perfectly without the crystal.)


3

The target board was not reset. The "Arduino as ISP" sketch uses pin 10 to reset the target, not the SS pin. So even on Mega, wire reset of target to pin 10, not to pin 53. Is this an error communicating with the ISP (Arduino) or is it an issue with the ISP talking to the target (ATMega8B on USBAVR)? the first error "not in sync" is a problem with ...


3

To answer my own question, just to report that I found something close to what I was looking for, which I link and describe briefly below. Gammon Software Solutions forum - Atmega Bootloader Programmer - Programming Cable On that page, the author suggest that we cut pin 5 from the 6-pin ICSP programming cable, solder a pin to it, and wire it to pin D10. ...


3

Yes you can program the Arduino's reset input pin as an output and use that to program another AVR, but you can no longer program your Arduino as that relies on the controller being reset through its own reset pin. Coming to think about it, I am not sure how the other devices (like the USB controller) responds to being reset by Arduino's controller itself. ...


3

Create an Arduino.h in ...\Arduino\hardware\attiny45_85\cores\attiny45_85 containing #include <WProgram.h> From here https://electronics.stackexchange.com/questions/87328/arduino-as-isp-for-attiny


2

As Ignacio mentioned, using ISP does not require a bootloader, however, it is also very nearly mutually exclusive with retaining one. Does programming via ISP clear the bootload, if installed previously in the chip? Indeed, it does. The ISP interface on the ATmega cannot erase individual pages but only the entire chip. This is distinct from the SPM ...


2

I programmed by Uno using your first guide and it seems to work OK. amforth 6.1 ATmega 8P Forthduino For example, using the serial monitor, I entered: 6 7 * . It printed: 42 ok > Then entered the ASCII table example: \ print a ascii table : .ascii base @ $7f $20 do i emit decimal ." , dec: " i . hex ." , hex: " i . 8 base ! ...


2

To upload compiled code (.hex) to a bare atmega which doesn't have a bootloader installed you can use ISP. As this stands for in-system-programming you don't have to flash the chip before assembly, but you can flash it in-system, so when already soldered onto your pcb. There actually is no need for those adapters like shown in your first picture, which often ...


2

It looks like the Trinket Pro has an Atmega328P processor. You can change the fuses to not run the bootloader, in which case you don't need the space taken by it. I have a hex uploader sketch which will upload a .hex file from an SD file directly to the chip, removing the need for a bootloader. Using ArduinoISP is another approach which will probably work. ...


1

Use the "Upload using programmer" in Sketch menu to upload a sketch over ISP warning, it deletes the bootloader


1

For what I know there is no easy way to pass custom options to avrdude via the Arduino IDE, but Sloeber (to which I'm a contributor) does. Beware though, the -F option of avrdude command doesn't solve the problem, just forces to skip the device signature verification, but if your Attiny is returning such signature something else is wrong and you'll end up ...


1

Mostly this error is due to connections/powering issues (as already mentioned in your output ). Check connections, especially power and ground also check the resistance between Vcc and GND of your target MCU. (If it's less than 100ohm that means something is off in your circuitry or your MCU is already fried.) Check if your MCU is actually getting enough ...


1

I have a page about programming a bootloader using another Arduino. Basically you grab the code from here and then make up wiring from the good device (which you put the sketch onto) to the device to be programmed, like this: Arduino Nano Target Nano D10 (SS) Reset D11 (MOSI) D11 D12 (MISO) D12 D13 (SCK) D13 ...


1

Sounds like you have a bad Arduino ISP board. I've had limited success restoring bootloaders on some Arduinos with my bad USBtinyISP programmer by connecting a 9V power supply to the Arduino in addition to the 5V that the ICSP cable provides. Worth a try. Note that back when my USBtinyISP was working properly I didn't need to attach 9V, the 5V from the ...


1

Add the board and their fuse description from what is already set and it will work. For adding just C:\Program Files\Arduino\hardware\arduino\avr\boards.txt and add the board description. ######## ############ Definitions for ATmega 8MHz ############################################################## atmega16-8.name=Atmega16 (internal 8MHz clock) atmega16-...


1

RSTDISBL is bit 0 of the high fuse byte. Use avrdude to read the current value of the high fuse byte (-U hfuse:r:-:h), clear bit 0, and then write the value back out (-U hfuse:w:0xXX:m).


1

If you are burning the bootloader through the IDE it won't expect the CKDIV8 fuse to be set. I have a bootloader programmer which you could use to reprogram the bootloader. You just need another Arduino (eg. Uno, Mega) and connect 6 wires between each of them like this: The sketch for programming the bootloader is available on Github: https://github.com/...


1

Try moving the "Cores" folder from the avi directory to the attiny director. The path was wrong for me and I was getting the same error. Had the same issue with the bootloader file. Moved it out of the avi folder as well and all worked ok then.


1

There is a nice explanation here about Atmel chip signatures. It sounds like you already know this, so for others looking for help: It says that there are different signatures in the Atmel chips you mention. That you can over ride the Avrdude program using an "-F" switch. Or you can change the Avrdude configurations to use the "other" Atmel chip (however,...


1

You might be able to use the programmer sketch I wrote a while back (it runs on a Uno). You need an SD card interface so it can read the .hex file for programming. See: http://www.gammon.com.au/uploader You connect things up roughly like this (Atmega328P shown, your wiring would be different at the target chip side): You would need to modify the sketch to ...


1

You should be able to use the Arduino as an ISP since an ISP is basically just a serial to SPI interface. If you are trying to use the arduino software to upload your program, you will need to edit your boards.txt file to be able to talk to the chip. If you are just using avrdude you will need to update your avrdude.conf. AVR Freaks has a post on someone ...


1

Find the file called "boards.txt" located in your Arduino installation directory. In my case, the path is "arduino-1.6.5/hardware/arduino/avr/boards.txt". Open it with your favourite text editor and locate the ATMEGA2560 section. (not in notepad, it breaks the file format, notepad++ my choice) in boards.txt back-up the file incase you break it, find the ...


1

When you go below (or above) the manufacturer's voltage/clock specifications, expect some problems. One chip may work another will not. Remember the lower the voltage normally the slower the clock needs to be. The CPUs are cut from a wafer (size and geometry specific) which may contain many thousand CPU die, they are at different locations on the wafer ...


1

Just burn the arduino bootloader to your tqfp. Then connect the tx and rx on the tqfp to the tx and rx on your arduino, and pull the reset line on the arduino low. Downside is you have to do a manual reset on the tqfp before programming. If you have an Uno you could remove the atmega from the socket, and connect the reset on the uno to the reset on the ...


Only top voted, non community-wiki answers of a minimum length are eligible