Member Since: October 20, 2013
Country: United States
I am having some trouble with programming mega328 (see my recent post). I realize you have a Mac OS, but perhaps your config will help guide me to my problem.
Thanks Krist
there was nothing wrong with the programmer…complete rebuild of computer fixed whatever software glitch existed.
I have been testing using this programmer as an ISP programmer for ATmega328. I have been able to burn fuses and a HEX file (using AVRDUDE), and load simple blink sketches (using Arduino IDE). However, when I’ve tried loading a more complex sketch, the program doesn’t run correctly when the ATmega328 is plugged into an Arduino. I am able to get the sketch to run properly on the chip when I use another Arduino as ISP using tutorial on Arduino site. I am assuming, I need to set some configuration settings/files up properly.
Configuration:
TinyAVRProgrammer ICSP port connected to ATmega328p RST,SCK,MISO,MOSI,VCC,GND pins
TinyAVRProgrammer connected to PC (Windows 7) via USB
Arduino IDE Tools->Board->Arduino Nano w/ ATmega328 (note: have also tried Arduino UNO)
Arduino IDE Tools->Programmer->USBtinyISP
Arduino IDE File->Upload Using Programmer
No compile or upload errors are reported. Arduino IDE reports Upload Complete.
I would like to use this programmer to load onto chip directly rather than using Arduino as ISP and having to hook it up, remove the Arduino chip, etc.
The program (sketch) has code for using SD card, LCD/touchscreen, and wireless communication if that is at all helpful. The specific part not working is the LCD does not show the image. The same sketch works fine using the Arduino FTDI to load via the TX/RX pins.
Any help would be appreciated.
Thanks
Krist
This Tiny AVR Programmer makes programming the ATtiny85 chip for my project so much easier. I love it! However, I recently ran into a problem. I just tried loading some new sketches using Arduino IDE v1.0.5 on a Win7 64-bit machine and I get a verification error. I have used this machine and software many times before without problems. IT appears from my searches that this indicates some kind of communication breakdown between the programmer and the computer. The onboard LED does show communication activity. I have tried two different chips. I have tried burning bootloader in case fuses had been changed. I tried reloading the drivers and core files.
Any ideas about how to fix? Is this a problem on the board or have my chips failed?
here is the verbose upload output:
Binary sketch size: 844 bytes (of a 8,192 byte maximum) C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny85 -cusbtiny -Uflash:w:C:\Users\Krist\AppData\Local\Temp\build282759822894877516.tmp\ATtiny85_Blink.cpp.hex:i
avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36 Copyright © 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright © 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"
Using Port : lpt1
Using Programmer : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\.\libusb0-0001–0x1781-0x0c9f AVR Part : ATtiny85 Chip Erase delay : 4500 us PAGEL : P00 BS2 : P00 RESET disposition : possible i/o RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 6 4 0 no 512 4 0 4000 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
flash 65 6 32 0 yes 8192 64 128 4500 4500 0xff 0xff
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
calibration 0 0 0 0 no 2 0 0 0 0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec CMD: [ac 53 00 00] [00 00 53 00] avrdude: AVR device initialized and ready to accept instructions
Reading | CMD: [30 00 00 00] [00 30 00 1e] CMD: [30 00 01 00] [00 30 00 93]
avrdude: Device signature = 0x1e930b avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. CMD: [a0 01 fc 00] [00 a0 01 ff] CMD: [a0 01 fd 00] [00 a0 01 ff] CMD: [a0 01 fe 00] [00 a0 01 ff] CMD: [a0 01 ff 00] [00 a0 01 ff] avrdude: erasing chip CMD: [ac 80 00 00] [00 ac 80 00] avrdude: Using SCK period of 10 usec CMD: [ac 53 00 00] [00 ac 53 00] avrdude: reading input file “C:\Users\Krist\AppData\Local\Temp\build282759822894877516.tmp\ATtiny85_Blink.cpp.hex” avrdude: writing flash (844 bytes):
Writing | CMD: [4c 00 00 00] [20 4c 00 00]
avrdude: 844 bytes of flash written avrdude: verifying flash memory against C:\Users\Krist\AppData\Local\Temp\build282759822894877516.tmp\ATtiny85_Blink.cpp.hex: avrdude: load data flash data from input file C:\Users\Krist\AppData\Local\Temp\build282759822894877516.tmp\ATtiny85_Blink.cpp.hex: avrdude: input file C:\Users\Krist\AppData\Local\Temp\build282759822894877516.tmp\ATtiny85_Blink.cpp.hex contains 844 bytes avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 1.11s
avrdude: verifying … avrdude: verification error, first mismatch at byte 0x0080 0x57 != 0xe1 avrdude: verification error; content mismatch
avrdude done. Thank you.
No public wish lists :(