I tried your suggestion with no change.
I can't bring myself to give up.
But I'm so confused now........I not sure what I'm supposed to be doing.
So I'll tell you everything I'm doing.
Installed Crosspack for AVR
Attiny861a on bread board
Soldered USBtinyISP and used jumpers in place of r4 and r7.
Usbtinyisp with jumper in place for power to tiny861a on bread board.
USBtinyISP jumpers as follows.......ribbon pin 1 (by red wire and arrow) to miso on 861a, pin 2 to vcc and avcc, pin 3 to sck, pin 4 to mosi,
pin 5 to reset, pin 6 to gnd and agnd.
Plug in USBtinyISP via usb cable to macbook. Green light comes on.
Also the led on bread board from vcc to gnd comes on.
Then from
http://www.micahcarrick.com/tutorials/a ... r-tutorial
I open TextWrangler.app, copy and paste the following, then save it in documents as blink.c.
Code: Select all
#define F_CPU 1000000UL
#include <avr/io.h>
#include <util/delay.h>
int
main (void)
{
DDRB |= _BV(DDB0);
while(1)
{
PORTB ^= _BV(PB6);
_delay_ms(500);
}
}
Then open Terminal.app in Utilities and type avrdude
Then copy/paste the following......
[img]avr-gcc -mmcu=attiny861 -Wall -Os -o blink.elf blink.c
avr-objcopy -j .text -j .data -O ihex blink.elf blink.hex
avrdude -p t861 -c usbtiny -e -U flash:w:Documents/blink.c[/img]
This is what shows up.
[img]avrdude version 6.0.1, URL: <
http://savannah.nongnu.org/projects/avrdude/>
stanleys-MacBook-Air:~ stanleythomas$ avr-gcc -mmcu=attiny861 -Wall -Os -o blink.elf blink.c
avr-gcc: error: blink.c: No such file or directory
avr-gcc: fatal error: no input files
compilation terminated.
stanleys-MacBook-Air:~ stanleythomas$ avr-objcopy -j .text -j .data -O ihex blink.elf blink.hex
avr-objcopy: 'blink.elf': No such file
stanleys-MacBook-Air:~ stanleythomas$ avrdude -p t861 -c usbtiny -e -U flash:w:Documents/blink.c[/img]
Then I hit Enter, in Terminal and get this.
[img]avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e930d
avrdude: erasing chip
avrdude: reading input file "Documents/blink.c"
avrdude: input file Documents/blink.c auto detected as invalid format
avrdude: invalid input file format: -1
avrdude: read from file 'Documents/blink.c' failed
avrdude: safemode: Fuses OK (H:01, E:DF, L:62)
avrdude done. Thank you.
stanleys-MacBook-Air:~ stanleythomas$ [/img]
I'm lost.
Please help