Issue with iostream-based hello world example with 4.6.2 release on PSIM BSP

Karel Gardas kgardas at
Mon Jan 10 15:23:10 UTC 2005


I've copied hello_world_c example to hello_world_cxx and moved test.c to and changed it to:

 *  Simple test program -- simplified version of sample test hello.

#include <bsp.h>

#include <iostream>

using namespace std;

rtems_task Init(
  rtems_task_argument ignored
  cout << endl << endl << "*** HELLO WORLD TEST ***" << endl;
  cout << "Hello World" << endl;
  cout << "*** END OF HELLO WORLD TEST ***" << endl;
  exit( 0 );

/* configuration information */





#include <confdefs.h>

/* end of file */

as I've already written I've added make-cxx-exe rule and also modified
example's Makefile so build output now looks:

/mnt/karel/downloads/RTEMS/build/tools/examples-4.6.2/hello_world_cxx$ make
test -d o-optimize || mkdir o-optimize
powerpc-rtems-g++ -B/mnt/karel/rtems-ppc//powerpc-rtems/psim/lib/ -specs
bsp_specs -qrtems   -g -Wall  -g     -mcpu=603e -D_OLD_EXCEPTIONS
-Dppc603e     -c   -o o-optimize/test.o
powerpc-rtems-g++ -B/mnt/karel/rtems-ppc//powerpc-rtems/psim/lib/ -specs
bsp_specs -qrtems   -g -Wall  -g     -mcpu=603e -D_OLD_EXCEPTIONS
-Dppc603e          -o o-optimize/hello.exe   o-optimize/test.o
powerpc-rtems-nm -g -n o-optimize/hello.exe > o-optimize/hello.num
powerpc-rtems-size o-optimize/hello.exe
   text    data     bss     dec     hex filename
 332616   65588   23381  421585   66ed1 o-optimize/hello.exe

The problem is that when I try this example in PSIM, I always get:

/mnt/karel/downloads/RTEMS/build/tools/examples-4.6.2/hello_world_cxx$ psim o-optimize/hello.exe
core_find_mapping() - access to unmaped address, attach a default map to handle this - addr=0xfffffff4 nr_bytes=0x4 processor=0x4013b008 cia=0x44754


Is there anything I've done wrong?

Karel Gardas                  kgardas at
ObjectSecurity Ltd. 

More information about the users mailing list