rtems samples crash

Thomas Doerfler Thomas.Doerfler at embedded-brains.de
Thu Apr 30 11:11:20 UTC 2009


Lukasz,

obviously you are trying to run executables which should run on your
"virtex" board in the gdb-integrated simulator "psim" (that's what the
line "tar sim" is for. Since the simulator does not know anything about
the "consolelite" serial port, it crashes when it tries to access these
registers.

You should try to connect via gdb to the target board (have a look at
the current xilinx EDK documentation on how you can download the
executable to the FPGA.

wkr,
Thomas Doerfler

lukasz mosdorf wrote:
> Hi all,
> 
> I have compiled RTEMS 4.9 for powerpc bsp virtex. Unfortunatelly Im not 
> able to run example programs. I do the following thing:
> 
> [root at mort RTEMS_CVS]# powerpc-rtems4.9-gdb `find . -name ticker.exe`
> GNU gdb 6.8
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later 
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu 
> --target=powerpc-rtems4.9"...
> (gdb) tar sim
> Connected to the simulator.
> (gdb) load
> (gdb) r
> Starting program: 
> /home/mort/RTEMS_CVS/b-mpc55xxevb/powerpc-rtems4.9/c/virtex/testsuites/samples/ticker/ticker.exe 
> 
> core_find_mapping() - access to unmaped address, attach a default map to 
> handle this - addr=0x40600008 nr_bytes=0x4 processor=0xb7c92008 cia=0x13414
> 
> 
> i did a stack trace and it looks like printing to a console crashes:
> 
> 
> (gdb) bt
> #0  outputChar (ch=85 'U')
>     at 
> ../../../../../../../../rtems/c/src/lib/libbsp/powerpc/virtex/console/consolelite.c:67
> #1  0x0001561c in vprintk (
>     fmt=0x2f380 "Unknown PVR value of 0x%x. Please add it to 
> <libcpu/powerpc/shared/include/cpuIdent.c>\n", ap=0x3ff74)
>     at 
> ../../../../../../rtems/c/src/../../cpukit/libcsupport/src/printk.c:159
> #2  0x0001593c in printk (fmt=<value optimized out>)
>     at 
> ../../../../../../rtems/c/src/../../cpukit/libcsupport/src/printk.c:174
> #3  0x00013cf0 in get_ppc_cpu_type ()
>     at 
> ../../../../../../../rtems/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c:111
> #4  0x00013108 in bsp_start ()
>     at 
> ../../../../../../../../rtems/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c:163
> #5  0x00013000 in boot_card (argc=<value optimized out>,
>     argv=<value optimized out>, envp=<value optimized out>)
>     at 
> ../../../../../../../../rtems/c/src/lib/libbsp/powerpc/virtex/../../shared/bootcard.c:197
> #6  0x00010024 in .startup ()
>     at 
> ../../../../../../../../rtems/c/src/lib/libbsp/powerpc/virtex/dlentry/dlentry.S:106
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> 
> 
> Same thing happens with all examples, not only this one.
> Any ideas ?
> 
> regards
> Lukasz Mosdorf
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users


-- 

--------------------------------------------
Embedded Brains GmbH
Thomas Doerfler        Obere Lagerstrasse 30
D-82178 Puchheim       Germany
email: Thomas.Doerfler at embedded-brains.de
Phone: +49-89-18908079-2
Fax:   +49-89-18908079-9



More information about the users mailing list