Y
Y
Yaroslav Samardak2015-11-18 14:58:55
Firmware
Yaroslav Samardak, 2015-11-18 14:58:55

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)

...

Z.Y.
Make passes with a bang, make flash issues:
no programmer has been specified on the command line or the config file
Specify a programmer using the -c option and try again

The cause of the error is clear, but how exactly to specify this programmer?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Samardak, 2015-11-21
@yaroslav_samardak

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)

...

Everything is sewn with a bang.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question