Apple Silicon functional toolchain

Hi all,
I manged to have a functional toolchain on apple silicon without rosetta.

1/ avr-gcc
install GitHub - osx-cross/homebrew-avr: Homebrew AVR Toolchain
and replace Arduino IDE shipped binaries with the one from homebrew:
avr-g++
avr-gcc
avr-gcc-ar
avr-objcopy

2/ ctags
clone GitHub - arduino/ctags: A mix of ctags and anjuta-tags for the perfect C++ ctags
edit general.h to correct a bug:

//# define __unused__  __attribute__((unused))
# define __unused__
./configure
make

and replace ctags binary shipped with Arduino IDE with this one

3/ avrdude
brew install avrdude
replace avrdude binary and avrdude.conf by the ones from homebrew

and that's it.

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.