After searching on the web, I found the Ubuntu 18 solution for getting the GCC cross compiler for M0 type ARM processors. The prescribed solution was:
sudo apt-get install arm-none-eabi-gcc
sudo apt-get install gdb-arm-none-eabi
The results were a big NOPE! I probably need to add a link for the update, but I have not been able to locate one. If anyone is able to help, it would be greatly appreciated.
Thank you,
Jack
Re: GCC compiler for SAMD21
Arduino IDE can install Cortex M0 compilers
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges
Raspberries are not Apples or Oranges
-
- Posts: 1129
- Joined: Mon Jun 11, 2018 11:22 am
Re: GCC compiler for SAMD21
yes, Arduino is feat. SAMD21 cores, but it supports boards, not native ICs: https://www.google.com/search?client=fi ... ino+SAMD21
But there are also small Arduino-compatible development boards for SAMD21 availabe:
https://www.avdweb.nl/arduino/samd21/sam-15x15
To download the Arduino IDE:
Code: Select all
wget http://downloads.arduino.cc/arduino-1.8.9-libuilt-in nuxarm.tar.xz
tar -x -f arduino-1.8.9-linuxarm.tar.xz
Re: GCC compiler for SAMD21
Thank you for the help so far. I understand the Arduino package has an M0 component, but what I am looking for is a stand alone compiler that can be used with Code:Blocks for stand alone development.
Jack
Jack
Re: GCC compiler for SAMD21
You can always build a gcc cross-compiler for your target from GCC sources.
Here are some instructions for doing just that http://gnutoolchains.com/building
Those instructions are for building GCC on Windows but I think you can easily see which parts you can omit for building on Raspbian.
Or see here for further clues:
https://preshing.com/20141119/how-to-bu ... -compiler/
Or read all the gory details:
https://gcc.gnu.org/install/
In my experience this can take quite some experimentation and head scratching to get built.
Here are some instructions for doing just that http://gnutoolchains.com/building
Those instructions are for building GCC on Windows but I think you can easily see which parts you can omit for building on Raspbian.
Or see here for further clues:
https://preshing.com/20141119/how-to-bu ... -compiler/
Or read all the gory details:
https://gcc.gnu.org/install/
In my experience this can take quite some experimentation and head scratching to get built.
Memory in C++ is a leaky abstraction .
Re: GCC compiler for SAMD21
Raspbian Buster does include the 'arm-none-eabi' compiler, see my blog on cross-compiling and debugging the NRF52:
https://iosoft.blog/arm-gcc-lean-nordic-nrf52/
I haven't used it on SAM processors, but if you have the necessary startup code, the build process should be similar.
https://iosoft.blog/arm-gcc-lean-nordic-nrf52/
I haven't used it on SAM processors, but if you have the necessary startup code, the build process should be similar.