MCF5485EVB startup crash

Joel Sherrill joel.sherrill at OARcorp.com
Fri Apr 27 17:57:49 UTC 2012


On 04/27/2012 12:53 PM, Chris Xenophontos wrote:
> Hello,
>
> 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
Is that configure a mistake? You have 4.11 as the target
which indicates 4.11 tools and 4.10.2 as the RTEMS version.
I am surprised it built at all.

That is the first issue but assuming it got built OK which is
a BIG assumption.....

Can you determine the address of the illegal instruction,
do an objdump on the .exe file and see what instruction
is there.

m68k-rtems4.11-objdump -da XXX.exe >XXX.dmp

It would help to get the exact exception message/number
and information about the instruction.

But the tools mismatch could be the root cause.
> 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:
>
> C-Compiler:
> [MTSDev at localhost src]$ m68k-rtems4.11-gcc -v
> Using built-in specs.
> COLLECT_GCC=m68k-rtems4.11-gcc
> COLLECT_LTO_WRAPPER=/opt/rtems-4.11/libexec/gcc/m68k-rtems4.11/4.6.3/lto-wrapper
> 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
> --libexecdir=/opt/rtems-4.11/libexec
> --mandir=/opt/rtems-4.11/share/man
> --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
> --enable-languages=c,c++
> 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
> -Wnested-externs
>
> Assembler:
> [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!
>
> Thanks,
> Chris Xenophontos
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users


-- 
Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985





More information about the users mailing list