wiki:TBR/BSP/Gen5200

Version 3 (modified by JoelSherrill, on Jun 21, 2007 at 12:19:14 AM) (diff)

Added info on EP5200C, IceCube?, and 5200 Lite

Gen5200

This BSP supports boards based on the Freescale MPC5200 microcontroller. The following boards are known to work with this BSP:

Freescape 5200 Lite

This was the evaluation board from Freescale. It is also known as the Ice Cube. Its design appears to have been used largely unchanged by multiple board vendors. There is a lot of information on the WWW for this board. The information on this page was based upon using an EP5200C clone of this board and is untested on the real 5200 Lite but should apply.

Once you link an RTEMS application based on the gen5200 BSP, you have a file in ELF format. The following sequence converts it to an U-Boot image format:

powerpc-rtems4.8-objcopy -R -S -O binary hello.exe hello.bin
cat hello.bin | gzip -9 >hello.gz
/opt/embedded/tools/usr/bin/mkimage \
  -A ppc -O rtems -T kernel -a 0x40000 -e 0x40000 -n "RTEMS" \
  -d hello.gz hello.img

The above takes the ELF image which is linked to load at 0x40000 and converts it to a binary file, zips it, and then converts it to an U-Boot image. This image can be loaded at executed with the following U-Boot command sequence:

tftp 1000000 hello.img
bootm

This places the image hello.img at 0x1000000 in RAM. The bootm command unzips it to its executable location starting at 0x40000 and transfers executable control to its entry point.

WARNING: Be careful that the executable's location and where the image is place in RAM do not overlap for the duration of the unzip process.

The details of setting up the network configuration and automatic boot options are in the U-Boot manual.

Embedded Planet EP5200C

This is a clone of the Freescale 5200 Lite evaluation board. It ships with Motorola's dBug as the ROM monitor. It is easy to flash U-Boot onto this board.

Be warned that dBug defaults to 9600 baud and U-Boot to 115200 baud. Embedded Planet ships a pre-compiled RAM based GNU/Linux kernel which uses a 9600 baud console. So be careful when switching back and forth to test.

The BSP for this board is a bit different from the others in that it is built WITHOUT vectors. Since this BSP variant only runs via U-Boot, we assume that loading the vectors section trashes U-Boot somehow and the download does not complete.

BRS5L

This is a project specific module.

PM520_CR825

This is a MicroSys? PM520 module on a CR825 carrier board. This combination offers the following features:

  • 100BBaseT Ethernet
  • 4 serial RS-232 Ports
  • Compact Flash Slot
  • RTC

See:

MicroSys GmbH

PM520_ZE30

This is a MicroSys? PM520 module on a customer specific ZE30 carrier board. This combination offers the following features:

  • 100BBaseT Ethernet
  • 4 serial RS-232 Ports
  • Compact Flash Slot
  • RTC
  • 2 CAN interfaces

Test Reports

CVS Head 2007-06-20: JoelSherrill reports that he has run most tests successfully on an EP5200C. Some tmtests exit with an Exception 3 but still report reasonable times.

4.7-branch-2006-11-18: Thomas Doerfler has reported, that the PM520_ZE30 seems to work out of the box with this snapshot on a PM520_ZE30. Tests executed: ticker.