Answer the question
In order to leave comments, you need to log in
Avrdude OS X how to flash ATtiny13A?
As a programmer, I use the Arduino Mega 2560, or rather the CH340G installed on it.
The main essence of the question: what to write in the Makefile, so that all this would be successfully poured into mikruha?
What I have in Makefile:
DEVICE = attiny13
CLOCK = 9600000
PROGRAMMER = #-c stk500v1 -P /dev/tty.wchusbserial1410 -b 9600
OBJECTS = main.o
FUSES = -U hfuse:w:0xFF:m -U lfuse:w:0x6A:m
AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE)
...
no programmer has been specified on the command line or the config file
Specify a programmer using the -c option and try again
Answer the question
In order to leave comments, you need to log in
Basically, I found it.
Install Arduino (it's easier to use its programmer, the size of the sketch will not increase from this)
MakeFile will look like this:
DEVICE = attiny13
CLOCK = 9600000
PROGRAMMER = -c stk500v1 -P /dev/cu.wchusbserial1410 -b 19200
OBJECTS = main.o
FUSES = -U hfuse:w:0xFE:m -U lfuse:w:0x6A:m
DUDE = /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude
CONF = /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf
AVRDUDE = $(DUDE) -C $(CONF) -v -p $(DEVICE) $(PROGRAMMER)
COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE)
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question