wiki:TBR/BSP/EZKit533

Version 7 (modified by ChrisJohns, on 02/19/09 at 14:39:22) (diff)

Update the TOC.

EZKit533

This is an evaluation Board from Analog Devices for the Blackfin 533 CPU. Information can be found here : http://www.analog.com/en/prod/0%2C2877%2CBF533%25252DHARDWARE%2C00.html

The source for RTEMS for the Blackfin CPU is currently only available via CVS checkout. This BSP has a Console Driver for a the built-in UART which supports polling or interrupted mode. It does also have a driver for core clock and timer. The BSP runs in supervisor mode.

The BSP executes on real hardware as well as on the skyeye simulator.

Toolchain

Thanks to Ralphs continous improvements on the RTEMS Toolchain packages you can download automatically generated RPMS of the toolchain from http://www.rtems.com/ftp/pub/rtems/linux/4.8

If you do use a debian based distribution you might add a line like : <blockquote> deb http://www.itasat.ita.br/rtems/ unstable main </blockquote> to the file /etc/apt/apt.sources and then do <blockquote> apt-get install bfin-rtems-binutils bfin-rtems-gcc skyeye-rtems </blockquote>

If you want to build your toolchain by yourself : donwload binutils 2.17, gcc 4.2 and newlib 1.15, apply Ralfs patches from RTEMS CVS (inside the contrib directory) and compile the for the bfin-rtems target.

Compiling RTEMS for Blackfin

So far the source for RTEMS for Blackfin is only available in CVS trunk. See RTEMS CVS Repository? on instructions how to checkout from CVS. To compile RTEMS do :

run the bootstrap script in the RTEMS source directory.

run the configure from a directory outside of RTEMS source

../rtems-cvs/configure --target=bfin-rtems --enable-posix --disable-networking --enable-cxx 
    --enable-rtemsbsp=eZKit533 --prefix=/usr/local/rtems

run

sudo make install

you can find hello world in /usr/local/rtems/bfin-rtems/eZKit533/lib/rtems-4.8/tests/

Skyeye Simulator

The Skyeye Simulator supports Timer and UART. The used skyeye configuration file is :

arch:blackfin
mach:bf533

The current versions 1.2.2 as well as subversion need a small hack to get the rtems timer running. In the file arch/bfin/mach/bf533_io.c change the line

#define BF533_HZ 50

to a value like 70000

Hardware Debugging

During devolping of this BSP the Icebear JTAG adaptor has proved to be very helpful. http://www.section5.ch/icebear

Live CD

There is a Ubuntu Edgy LiveCD with a complete RTEMS Blackfin development Environment available at http://www.itasat.ita.br/portuguese/Ubuntu/ubuntu-bfin-live.iso

Beware this CD has not yet been updated to ubuntu edgy. It is also not able to run bootstrap from the current CVS but might be a good starting point to setup a development machine.

Wishlist

  • loading from flash via bfin bootloader (beeing finished by Alain Schäfer)
  • Proper support for Data and Instruction Cache
  • Filesystem support for the on-board flash
  • GDB Stub for debugging via Serial Port

Test Reports

CVS head -- (25 October 2006) Alain Schäfer reports sucessful execution of Hello, Ticker, Paranoia and other tests on the Hardware as well as on Skyeye