RTEMs config_leon3_drvmgr.c help

Matthews, Lee l.matthews at imperial.ac.uk
Fri Dec 3 11:12:05 UTC 2010


Hi All,

I'm a complete beginner to RTEMs and I'm having some problems getting some example code to compile correctly, I'd appreciate a hand if anyone is able.

Essentially  I'm developing for  an Aeroflex Gaisler LEON3 processor that is running on a Pender GR-CPCI-AX2000 development board.

I installed Aeroflex Gaisler's debug monitor GRTOOLs package which also installed a set of rtems example code.

I'm developing using  Eclipse (v1.3) on top of which I installed the rtems plugin (v1.4 from http://www.rtems.com/ftp/pub/rtems/eclipse/updates/) on a windows XP machine.

I can get some of the simple hello world type examples to compile ok, then upload and run them on the LEON3 processor without problems.

However, I'm now trying to get the spacewire example working (rtems-spwtest-2boards.c) without much luck. When the compiler reaches the file config_leon3_drvmgr.c (included as an attachment), it produces the following compilation error :  'ambapp_root' undeclared (first use in this function)

The problem seems to come from this bit of code :

void system_init2(void)
{
                /* LEON3 AMBA PnP bus */
                grlib_amba_bus.mmaps = NULL;
                grlib_amba_bus.root = ambapp_root;

                /* Register GRLIB root bus */
                drv_mgr_grlib_init(&grlib_bus_config);
}

It assigns grlib_amba_bus.root  to ambapp_root, but I can't seem to find a declaration of the ambapp_root variable anywhere. Am I missing something glaringly obvious?

Thanks in advance.

Best wishes,
Lee Matthews

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20101203/2f646971/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config_leon3_drvmgr.c
URL: <http://lists.rtems.org/pipermail/users/attachments/20101203/2f646971/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtems-spwtest-2boards.c
URL: <http://lists.rtems.org/pipermail/users/attachments/20101203/2f646971/attachment-0001.c>


More information about the users mailing list