How to port to the Arduino Due with C++ exception support etc.

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 25 14:38:31 UTC 2013


Hello,

On 2013-07-24 15:19, R. Diez wrote:
> Hi all:
>
>
> [2nd attempt at posting this message]
>
>
> I am tired of old-style C code and their accompanying
> decade-old excuses in embedded environments, so I have set up an
> open-source, bare-metal environment for the Arduino Due with support for
>   "modern" C++ features like C++ exceptions. For more information, see
> here:
>
> https://github.com/rdiez/JtagDue
>
> The
>   next step would be upgrading to a proper OS with POSIX threads etc.,
> while still keeping C++ exception support and the like. I hope RTEMS
> does not disappoint me.

RTEMS is a good choice if you need a small operating system with POSIX threads 
support.

>
> The Arduino Due has an AT91SAM3X8E
> microcontroller with an ARM Cortex-M3 core, 512 KiB Flash and 96 KiB
> SRAM. However, RTEMS does not have a Board Support Package for this
> board. What would be the best way to write a new one, in order to
> prevent as much duplication as possible?
>
> I had a quick look around, and I found the following candidate Board Support Packages:
>
> - stm32f4: Cortex-M4, looks simple and small, probably a good template.
>
> - lm3s69xx: Supports some Cortex-M? CPU.

Both BSPs use the Cortex-M.  Providing a BSP for the Cortex-M is quite simple 
since they all have the NVIC and SysTick modules.  Only the console driver is 
likely chip dependent.

One of the lm3x69xx variants runs on Qemu.

[...]


-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
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 devel mailing list