Page 1 of 1

Is there a gcc-arm-none-eabi package available?

Posted: Sat Feb 07, 2015 11:11 pm
by markatlnk
I would like to use the Pi as a development system for some of the cortex M0 chips such as LPC810. I attempt to build it on the Pi didn't get very far, is there a pre-built binary I could just apt-get install? I looked but didn't find it.

Thanks,

Mark

Re: Is there a gcc-arm-none-eabi package available?

Posted: Sun Feb 08, 2015 9:54 am
by mimi123
you can use the normal GCC with -nostdlib -mcpu=cortex-m0 .
You will only need downloading libgcc_s

Re: Is there a gcc-arm-none-eabi package available?

Posted: Sun Feb 08, 2015 2:01 pm
by panik
mimi123 wrote:you can use the normal GCC with -nostdlib -mcpu=cortex-m0 .
You will only need downloading libgcc_s
That works in theory, but I ran into trouble when trying to compile anything more complicated than a simple blinky.bin.

The ideal solution for me was to replicate the experience as on a regular desktop, so I compiled arm-none-eabi-gcc (with newlib, gmp, mpfr, mpc etc.) on the Raspberry Pi. The toolchain is based on Yagarto. Scripts that install a precompiled version can be found here: https://github.com/ARMinARM/arminarm

It installs cleanly to '/opt/arminarm/, but you can put it anywhere you want. The install scripts should be simple enough to figure out what to change if you want things differently. The install scripts for extra tools (openocd, dfu-util, etc) might come in handy as well.

The examples compile for the Cortex M3 chip for the board I'm selling, but the toolchain should work for M0 as well (I tested it to work for M4). I'm interested to hear if it works for your M0.

If you want to compile the toolchain yourself: https://github.com/ARMinARM/arm-toolchain-build-scripts

Re: Is there a gcc-arm-none-eabi package available?

Posted: Sun Feb 08, 2015 3:06 pm
by markatlnk
Thanks, I will try the built in to see if it fits my needs first.

~m

Re: Is there a gcc-arm-none-eabi package available?

Posted: Tue Sep 17, 2019 4:30 am
by vanbwodonk
If anyone still searching for gcc-arm-embedded toolchain for raspberry pi. Already build inside raspberry pi for almost 48 hours.
https://github.com/vanbwodonk/gcc-arm-e ... uild-armhf

Re: Is there a gcc-arm-none-eabi package available?

Posted: Wed Jul 22, 2020 3:02 pm
by JovianPyx
Thank you, that works, I just installed it. I do STM32 work and I find it easier to use a plain text editor and a command line compiler rather than IDEs like Eclipse that (for me) obfuscate by hiding it's functions and properties.