On 05/28 12:11, Raffaele Belardi wrote:
> Jeremi Piotrowski wrote:
> > On Sun, May 27, 2018 at 05:06:43AM +0200, tu...@posteo.de wrote:
> >> Hi,
> >>
> >> too feed a STM32F103C8T6 MCU (Core-M3) with some code to execute,
> >> I want a compiler. For that I did a 
> >>
> >>     crossdev arm-unknown-linux-gnu
> >>
> >> . That one failed to build (gcc, binytils seem to be ok).
> >>
> > That triplet is not going to work for that hardware for two reasons:
> > 
> >  - bare-metal implies no kernel so 'linux' is wrong
> >  - gnu (== glibc) is not going to work on bare-metal
> > 
> > What you're looking for is 'arm-none-eabi', that's what all the vendor
> > supplied prebuilt toolchains use. That triplet will use 'newlib' as the
> > libc, which is the correct choice for bare-metal.
> > 
> > I wouldv'e said 'arm-unknown-linux-eabi' or the gentoo specific
> > 'armv7m-softfloat-none-eabi' but for some reasons the binutils
> > build chokes on that. However compared to arm-none-eabi the only thing
> > these triplets do is change some of the configured defaults (arch/fpu/...,
> > see /usr/portage/eclass/toolchain.eclass), so you should be fine with
> > 'arm-none-eabi'.
> > 
> 
> arm-none-eabi is also what I'm using here on a similar platform.
> 
> To the OP, if you only need to build some program for ARM and not install a 
> gentoo system
> on the target then you could download the pre-built cross-compiler toolchain 
> from the ARM
> site (https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads).
> 
> raffaele
> 

Hi Raffaele,

your suggestion put a friendly smile onto my face:
No, I dont want compile a Gentoo System... :)
I want to compile a FORTH (Mecrisp Stellaris by Matthias Koch) for an
STM32F103C8T6 (72Mhz, one core, 128Kb Flash 20kb RAM). This is jut
0.23 nm above "pure assembler".
So your suggestion is very welcome and exactlu what I need after quite
a few failed iterations about the name of that game.

Thanks a lot, Raffaele! This day has been rescued! :) ;)

Cheers!
Meino

For those, who may like a quirky yet genious programming language and
who are not frightened by its age or by being responsible for the stack
themselves:
https://en.wikipedia.org/wiki/Forth_(programming_language)
Still a good thing for microcontrollers due to its compact size,
small footprint and excellent exection speed due to the fact,
that Mecrisp Stellaris compiles to native assembler right on the
board. This language is compiler and interpreter at the same time.
http://hightechdoc.net/mecrisp-stellaris/_build/html/
http://mecrisp.sourceforge.net/
https://sourceforge.net/projects/mecrisp/files/
The STM32F103C8T6 minimum dev board aka "blue pill" can be bought
online for under 2 $.

No...this is not meant aa an advertisement...I am only a nerd... ;)
And the above is all OpenSource!

Cheers again!
Meino





Reply via email to