RTEMs config_leon3_drvmgr.c help

João Rasta freakforever at gmail.com
Fri Dec 3 11:51:40 UTC 2010


Sorry i misread your question.

What you may need is simply #include <bsp.h>


Best,
JM

On Fri, Dec 3, 2010 at 11:12 AM, Matthews, Lee <l.matthews at imperial.ac.uk>wrote:

>  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
>
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20101203/93e2a64f/attachment-0001.html>


More information about the users mailing list