How to port RTEMS on a Cortex-M3 microcontroller

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jul 5 07:09:31 UTC 2010


On 07/04/2010 10:51 PM, Gene Smith wrote:
> Sebastian Huber wrote, On 06/23/2010 04:19 AM:
> 
>> [...]
>>
>> Try to compile code for you processor with standard ARM tools
>> (arm-rtems4.10-{gcc, as, ld}).  If this doesn't work, then file a PR
>> in the
>> RTEMS bugzilla.
> 
> I just built my non-rtems cortex-m3 app with the latest arm-rtem4.10-*
> toolchain from yum with no errors. I don't have a way to test it right
> now but at least it builds with no errors. The only arm/cortex-m3
> options I am using are:
> -mcpu=cortex-m3 -mthumb
> (I suspect -mthumb is redundant since cortex-m3 only run thumb-2 code.)

What do you mean with non-RTEMS application?  Do you use parts of Newlib, e.g.
memcpy()?

> 
> My application uses ST Micros's stm32 thumb-2 startup and vector init
> assembly code. Otherwise it is just c code.
> 
> I usually build this with codesourcery lite arm-none-eabi-* tool chain.
> 
> Does this indicate that the rtems toolchain is OK or is runtime
> verification needed too?

Since the Thumb-2 instruction set is backward compatible to the Thumb-1
instruction set it should work.  A missing Thumb-2 multi-lib is probably a
performance penalty.

> 
> -gene
> 
> [...]
> 
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users


-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list