You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

We are using the RCE platform to preform readout of Pixel module(s).

Getting accounts, etc.

You need an account on lab1 machines, and access to the NPA area on AFS. Contact:
Mike Huffer <mehsys@slac.stanford.edu>, Amedeo Perazzo <perazzo@slac.stanford.edu>

Some links to more RCE info:

To develop RCE code:

ssh rdusr102 #machine in lab1
#ssh rddev102 #if you want to then go to a sometimes faster build machine
source /afs/slac/g/npa/setup/npa_49.csh

If you don't already have a release area setup, you need to make one:

cvs co -d <mydir> release
cd <mydir>
cvs co rce
cvs co rceusr
cvs co rceapp
#for example see ~ahaas/myrelease_new

Then build:

gmake ppc-rtems-rce405-dbg #builds rce apps
#gmake i386-linux-dbg #if you want to build linux apps

To run netbeans:

source /afs/slac/g/npa/setup/npa_49.csh #make sure you've done this first
~ahaas/netbeans-6.5.1/bin/netbeans &

Import your release area via:

"File->New Project..."
"C/C++ Project From Existing Code"
"Existing Makefile:" enter the "<release directory>/Makefile"
Change "Build Command:" to "gmake ppc-rtems-rce405-dbg"
Next, Next, Finish, then build the project.

To run RCE code:

telnet rce22
root (nopass)

mount -t nfs 172.21.5.150:/nfsexport/home /nfs #got ip address from "mount" on rddev102
cd /nfs/ahaas/myrelease_new/build/rceapp/mod/ppc-rtems-rce405
runtask -N test ./hellomod.1.0.test.so

Other handy RCE commands:

task
cpuuse
stackuse
stoptask -N test
syslog
syslog -l 10 #just last ten lines
syslog -c #clear (see myrelease_new/rce/shell/src/syslog.cc)

Working on STcontrol / PixLib / unixdaq

Under construction...

To compile/run:

bash
cp -r /reg/lab1/home/estrauss/release-1.0_edit .
export ROOTSYS=/reg/lab1/home/estrauss/root/
export QTBIN=/reg/lab1/home/estrauss/qt-4.4.2/bin/
cd release-1.0_edit
. setup_noTDAQ.sh
make
bin/STcontrol
  • No labels