-
-
Save joegoggins/7763637 to your computer and use it in GitHub Desktop.
# Download the file manually from here https://launchpad.net/gcc-arm-embedded | |
# Note: `curl` command doesn't work | |
# I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2" | |
# double click it to unzip it | |
# Make a place to install it to | |
mkdir /usr/local/gcc_arm | |
# Move the unzipped stuff there. | |
mv ~/Downloads/gcc-arm-none-eabi-4_7-2013q3 /usr/local/gcc_arm/ | |
# Check out all the purdy binaries, you'll need to build firmware. | |
ls /usr/local/gcc_arm/gcc-arm-none-eabi-4_7-2013q3/bin/ | |
# arm-none-eabi-addr2line arm-none-eabi-gcc-4.7.4 arm-none-eabi-ld.bfd | |
# ... | |
# arm-none-eabi-gcc ... | |
# Peep your current PATH | |
echo $PATH | |
# /usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:<BLA BLA BLA> | |
# Change your PATH by appending the "bin" folder of the folder | |
# NOTE: You should also add this line to ~/.bashrc or ~/.bash_profile (in your home directory) | |
# so you don't have to remember to do this every time you want to compile firmware. | |
export PATH="$PATH:/usr/local/gcc_arm/gcc-arm-none-eabi-4_7-2013q3/bin/" | |
# Check to ensure the gcc-arm firmware compiler is available (so `make clean dependents all` will work.) | |
arm-none-eabi-gcc --version | |
# arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.7.4 20130913 (release) [ARM/embedded-4_7-branch revision 202601] |
The correct command to install gcc-arm-embedded is: brew install homebrew/cask/gcc-arm-embedded
The install works great. However when it is done the compile is unusable due to MacOS security. Is there a way to bypass the new security in Catalina?
@curtisembedded open Security & Privacy, in the general tab allow gcc-arm-none-eabi to run
brew cask install gcc-arm-embedded
This works even in 2020. Nice one.
brew cask install gcc-arm-embedded
Works Fine in MacBook Pro 2020
brew install --cask gcc-arm-embedded
Had to use this one since I got the error Calling brew cask install is disabled!
Is this 32-bit only?
+1 to brew cask install gcc-arm-embedded
. Thank you!
Works as expected on Mac M1 (cask installed from a Rosetta brew - i.e. arch was i386 to ensure placing in /usr/local/bin and not in /opt/homebrew/bin).
brew cask
no more works after 2022.
Instead, use brew install gcc-arm-embedded --cask
to install.
Thanks @jeremyheiler anyway.
thank you
There are a number of solutions in this thread, but the official download from brew and ARM with :
brew cask install gcc-arm-embedded
is by far the simplest and easiest.