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?
you can use the normal GCC with -nostdlib -mcpu=cortex-m0 .
You will only need downloading libgcc_s
You will only need downloading libgcc_s
Re: Is there a gcc-arm-none-eabi package available?
That works in theory, but I ran into trouble when trying to compile anything more complicated than a simple blinky.bin.mimi123 wrote:you can use the normal GCC with -nostdlib -mcpu=cortex-m0 .
You will only need downloading libgcc_s
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
- ARMinARM: ARM Cortex-M3 (STM32)
- AVRPi: ATmega32U4 & ATmega328 ("Arduino")
http://www.onandoffables.com
Re: Is there a gcc-arm-none-eabi package available?
Thanks, I will try the built in to see if it fits my needs first.
~m
~m
-
- Posts: 1
- Joined: Tue Sep 17, 2019 4:25 am
Re: Is there a gcc-arm-none-eabi package available?
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
https://github.com/vanbwodonk/gcc-arm-e ... uild-armhf
Re: Is there a gcc-arm-none-eabi package available?
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.