Good day,
I have downloaded AVRA 1.3.0 from sourceforge. There is no bin folder, and the OS X makefile is empty. How can I create an OS X executable?
Thanks,
Bob
OS X missing makefile
You might want to have a look at the Atmel Toolchains.
CC=gcc
ARCH=-arch i386 -arch x86_64 -arch ppc
SOURCE=args.c \
avra.c \
coff.c \
device.c \
directiv.c \
expr.c \
file.c \
macro.c \
map.c \
mnemonic.c \
parser.c \
stdextra.c
all:
$(CC) $(ARCH) -o avra $(SOURCE)
This is what I found in the Makefile OS X. I was hoping to find an executable. I'm not sure how to use it. Any tips?
How can I create an OS X executable?
https://formulae.brew.sh/formula/avra
and Nix
https://nixos.org/nixos/packages.html#avra
The makefile are BUILDING instructions. If you run "make" it should read that recipe, execute those compilation commands and finally produce an executable. But I'd take the earlier advice. Get avr-gcc for OSX then just learn to use avr-as as your assembler. Either that or run Windows and install AS7 which I know is what a number of other Mac users on Freaks do.
@Robert Dunn wrote:
I was hoping to find an executable.
I don't know what you downloaded, but there is OSX and/or Darwin package with the following:
Greg that isn't avra. avra was a clone of Atmel Asm2 written to be available on non-Windows systems. Your list above does have avr-as which is the GNU assembler for AVR.
@clawson wrote:
Greg that isn't avra.
Oh. Never mind.
Good day,
I have decided to abandon avra for several reasons which don't really need mentioning.
This is my first project, a tachometer for my lathe and milling machine. The learning curve is huge.
Should I start a new thread for help with that? I need to know where to get software in the public domain, and a little bit about how to use it. I have a Mac with Windows on it.
Would this sub forum be the place to post it?
Thanks,
Bob
Should I start a new thread for help with that?
Yes please.
Would this sub forum be the place to post it?
Are you using an AVR or a different chip? I don't quite understand, you seem to be talking about an OS X executable.
I was first planning on an AT89S51, but I since have decided on an ATmega238.
You should be able to run AS7 under "wine"?? on your Mac, someone will tell us more on what to do.
Then you have a choice of Assembler, C or C++, don't know which one you prefer.
The best place for your questions/ thread then would be the megaAVR and tinyAVR forum.
You should be able to run AS7 under "wine"?? on your Mac, ...
Some (a few?) here have Atmel Studio in a VM.
Visual Studio is also in a VM for macOS.
https://appdb.winehq.org/objectManager.php?sClass=application&iId=892 (Visual Studio)
https://appdb.winehq.org/objectManager.php?sClass=application&iId=402 (AVR Studio / Atmel Studio)
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines
This is my first project, a tachometer for my lathe and milling machine. The learning curve is huge.
Then Arduino should be a good starting place, cheap standard hardware, and LOTS of example code and hardware shields to learn from and copy.
The Arduino uno with plugable shields will get you started, then move to Arduino nano to build your own compact tach.
Jim
Thanks for all the help here. I have made a new thread on the megaAvr and tinyAvr forum (as suggested by js). See you all there!
Bob