wiki:TBR/BSP/EZKit533

Version 12 (modified by C Rempel, on 12/31/12 at 08:30:50) (diff)

Additional info for Google Code In

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

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

See RTEMS GIT Repository? on instructions how to checkout the RTEMS source code. 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 development 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 with the current CVS/Git head and tools but might work 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= References =

# http://www.analog.com/en/processors-dsp/blackfin/adsp-bf533/products/product.html # http://docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf533-ezkit # http://en.wikipedia.org/wiki/Blackfin # http://www.analog.com/static/imported-files/eval_kit_manuals_legacy/402257434ADSP_BF533_EZ_KIT_Lite_Manual_Rev._1_3.pdf Note: nice manual find, but this level of depth may not be particularly helpful for use with Google Code In