BSP for AT91SAM9263-EK

Joachim Rahn Joachim.Rahn at bessy.de
Mon Feb 8 13:06:28 UTC 2010


On 05.02.2010 21:58, Joel Sherrill wrote:
> 
> 
> On 02/05/2010 01:00 PM, Johannes Schock wrote:
>>
>> Hi RTEMS-Users,
>>
>> First let me introduce myself:
>>
>> I’m head of development of a small technology company in Germany
>> (while being head is easy while being the only one developer).
>>
>> I work for several years with Realtime-Systems (ARC/Freescale MQX on
>> Coldfire, and Keil RL-ARM on ARM processors), and I’m about to finish
>> a 12months project with an AT91SAM9263 running Keil RL-ARM, Nano-X and
>> FLTK.
>>
>> Now I’d like to create a RTEMS-BSP for the AT91SAM9263EK-Board. (Since
>> this will be a holiday project, it’ll last for a while.)
>>
>> My first goal is to write a new specific interrupt handle with the
>> following features:
>>
>> Using the benefits of the integrated AIC of AT91SAM9263 (e.g. 8-level
>> priority based nesting).
>>
>> Separate IRQ from FIQ while only having the IRQ RTEMS-handled and the
>> FIQ running free (à no RTEMS-calls from FIQ, but the possibility of a
>> single fast handler)
>>
> Wonderful.  Hopefully someone will let you know which is the
> best BSP to base it upon.  Look in c/src/lib/libcpu/arm/ and
> c/src/lib/libbsp/arm for possible code.
> 
> 
>> If someone has any hints or found already solutions for problems I
>> will face, please feel free to reply.
>>
>> I also have a general question concerning licenses:
>>
>> ATMEL has released the AT91lib, with support code for many peripherals
>> of the device/board. The code is under the following license:
>>
> This license looks OK to me.  If I am correct, it is putting absolutely
> no burden on the normal RTEMS user or persons they deliver a system
> to.  That is the goal.  If you see something in that license that
> is different, correct me.
>>
>> /*
>> ----------------------------------------------------------------------------
>>
>>
>>  *         ATMEL Microcontroller Software Support
>>
>>  *
>> ----------------------------------------------------------------------------
>>
>>
>>  * Copyright (c) 2008, Atmel Corporation
>>
>>  *
>>
>>  * All rights reserved.
>>
>>  *
>>
>>  * Redistribution and use in source and binary forms, with or without
>>
>>  * modification, are permitted provided that the following conditions
>> are met:
>>
>>  *
>>
>>  * - Redistributions of source code must retain the above copyright
>> notice,
>>
>>  * this list of conditions and the disclaimer below.
>>
>>  *
>>
>>  * Atmel's name may not be used to endorse or promote products derived
>> from
>>
>>  * this software without specific prior written permission.
>>
>>  *
>>
>>  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY
>> EXPRESS OR
>>
>>  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
>> WARRANTIES OF
>>
>>  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
>> NON-INFRINGEMENT ARE
>>
>>  * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
>> INDIRECT,
>>
>>  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
>> (INCLUDING, BUT NOT
>>
>>  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
>> USE, DATA,
>>
>>  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
>> THEORY OF
>>
>>  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
>>
>>  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
>> SOFTWARE,
>>
>>  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>>
>>  *
>> ----------------------------------------------------------------------------
>>
>>
>>  */
>>
>> Is it ok to put unmodified and modified portions of code covered by
>> this license and the license itself into a RTEMS-BSP?
>>
>> Thanks in advance for any replies.
>>
>> Regards,
>>
>> Mit freundlichen Grüßen
>>
>> Johannes Schock
>>
>> **Stiefel GmbH**
>> Allmend 7/2
>> 75038 Oberderdingen
>> Webseite: www.stiefelgmbh.de
>> <blocked::http://webseite:%20www.stiefelgmbh.de/>
>>
>> Tel.: 00 49 (0) 70 45 / 96 27 - 14
>> Fax: 00 49 (0) 70 45 / 96 27 - 20
>> E-mail: j.schock at stiefelgmbh.de <mailto:sj.schock at stiefelgmbh.de>
>> ___________________________________
>>
>> Stiefel GmbH Automationssysteme
>> Firmensitz: Allmend 7/2  /  75038 Oberderdingen
>> Registergericht: Amtsgericht Mannheim
>> HRB 240448  /  USt.-ID-Nr.: DE 143 082 998
>> Geschäftsführer: Richard Stiefel
>>
> 
> 

We did some work on a BSP for RTEMS 4.9.0 and AT91SAM9263-EK.

A good starting point is the csb337 BSP based on the AT91RM9200
which is similar but not identical to the AT91SAM9263 so we modified
it were needed.

We use the u-boot bootloader in dataflash to load and start the RTEMS application.

The minimal BSP is up and running:

IRQ		: done
Console (DBGU)	: done
Clock-driver	: done
Timer		: done
Ethernet	: running but still some performance issues to fix...

The RTEMS testsuites are running.

The interrupt handling is analog to the csb337 and don't use the advanced features of the AIC.
Your proposed interrupt handler sounds very interesting!

Regards
-- 
Joachim Rahn
______________________________________________________________________________
Joachim.Rahn at bessy.de, Phone: (+49) 30 6392-4864, Fax: -2903
Wilhelm-Conrad-Röntgen-Campus Adlershof, Albert-Einstein-Str. 15, 12489 Berlin
Helmholtz-Zentrum Berlin für Materialien und Energie
______________________________________________________________________________




More information about the users mailing list