markatlnk
Posts: 59
Joined: Sun Feb 23, 2014 7:53 pm

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

Sat Feb 07, 2015 11:11 pm

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

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

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

Sun Feb 08, 2015 9:54 am

you can use the normal GCC with -nostdlib -mcpu=cortex-m0 .
You will only need downloading libgcc_s

User avatar
panik
Posts: 369
Joined: Fri Sep 23, 2011 12:29 pm
Location: Netherlands

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

Sun Feb 08, 2015 2:01 pm

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
Microcontroller addon boards and software for Raspberry Pi A+/B+/Pi2:
- ARMinARM: ARM Cortex-M3 (STM32)
- AVRPi: ATmega32U4 & ATmega328 ("Arduino")
http://www.onandoffables.com

markatlnk
Posts: 59
Joined: Sun Feb 23, 2014 7:53 pm

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

Sun Feb 08, 2015 3:06 pm

Thanks, I will try the built in to see if it fits my needs first.

~m

vanbwodonk
Posts: 1
Joined: Tue Sep 17, 2019 4:25 am

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

Tue Sep 17, 2019 4:30 am

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

JovianPyx
Posts: 132
Joined: Fri Nov 20, 2015 9:34 pm

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

Wed Jul 22, 2020 3:02 pm

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.

Return to “Advanced users”