MCF5485EVB startup crash

Chris Xenophontos cxenophontos at
Fri Apr 27 17:53:09 UTC 2012


We recently purchased an MCF5485EVB board from LogicPD, due to its
hardware floating point capability.

We have an application (highly math intensive) that we had running
successfully on a MCF5235 board with RTEMS 4.9 (built under MinGW),
and we want to run it on the 5485 to compare performance.
We want to use hardware FP rather than SW FP libraries.
RTEMS 4.10 has been installed (VMWare/CentOS environment).

I configured and built as follows:

../rtems-4.10.2/configure --target= m68k-rtems4.11
gmake RTEMS_BSP=m5484FireEngine install

The correct libraries, etc, appear to have been created, and our
application builds fine.
The problem is, when loading to RAM, and executing from start, the
application crashes with an illegal instruction.  It appears to be in
Thread_Dispatch, called from rtems_semaphore_create
We are suspecting that wrong code is being generated for the '5485.

Here is some info on the configuration:

[MTSDev at localhost src]$ m68k-rtems4.11-gcc -v
Using built-in specs.
Target: m68k-rtems4.11
Configured with: ../gcc-4.6.3/configure --prefix=/opt/rtems-4.11
--bindir=/opt/rtems-4.11/bin --exec_prefix=/opt/rtems-4.11
--includedir=/opt/rtems-4.11/include --libdir=/opt/rtems-4.11/lib
--infodir=/opt/rtems-4.11/share/info --datadir=/opt/rtems-4.11/share
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=m68k-rtems4.11 --disable-libstdcxx-pch --with-gnu-as
--with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls
--without-included-gettext --disable-win32-registry
--enable-version-specific-runtime-libs --enable-threads --disable-lto
--disable-plugin --enable-newlib-io-c99-formats --enable-newlib-iconv
Thread model: rtems
gcc version 4.6.3 20120301 (RTEMS gcc-4.6.3-1.el6/newlib-1.20.0-5.el6) (GCC)

C-Compiler Flags:
-mcfv4e -DM5484FIREENGINE -Wa,-memac -O2 -g -fomit-frame-pointer
-Wall -Wimplicit-function-declaration -Wstrict-prototypes

[MTSDev at localhost src]$ m68k-rtems4.11-as -version
GNU assembler (GNU Binutils) 2.22
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `m68k-rtems4.11'.
[MTSDev at localhost src]$

Any help will be greatly appreciated!

Chris Xenophontos

More information about the users mailing list