USCRPL / mbed-cmake

Use the power of CMake to create your MBed applications
36 stars 9 forks source link

Simpler toolchain setup for Linux #20

Closed ProExpertProg closed 3 years ago

ProExpertProg commented 4 years ago

As explained in #2, the toolchain instructions for Linux are incomplete, as they don't correctly add everything to your path.

It is much easier to simply install them with apt:

$ sudo apt update -y
$ sudo apt-get install -y gcc-arm-none-eabi

I think the docs should list this as the default installation method and provide the current one as backup. I've tested this on Ubuntu 20.04 using WSL and CLion and it works.

ProExpertProg commented 3 years ago

Also found a better way to install on Mac: https://github.com/ARMmbed/homebrew-formulae

$ brew tap ArmMbed/homebrew-formulae
$ brew install arm-none-eabi-gcc
multiplemonomials commented 3 years ago

Added to the wiki page! https://github.com/USCRPL/mbed-cmake/wiki/Toolchain-Setup

Thanks for the tips

jasperswallen commented 3 years ago

Also, using choco with Windows makes this much easier as well: choco install gcc-arm-embedded