Customized RTEMS + Eclipse
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Thu Oct 20 15:51:01 UTC 2005
Fabrício de Novaes Kucinskis (DEA) wrote:
> Hi all,
>
>
> Does someone use Eclipse here?
>
> After analyse some options people here gave me I chose Eclipse with
> Gaisler's plugin as my IDE.
>
> Now I'm trying to use it to create programs to an ERC32 Tharsys development
> board. My idea is to create a simple application inside Eclipse, run it in
> the board, show to the boss, and then try TSIM.
>
> When I install the plugin and RCC (the GCC compiler with RTEMS, from
> Gaisler), everything works fine. I can compile a "hello_world" program
> normally.
>
> My problem is that I have to use a customized version of RTEMS, with a patch
> to allow the OS to run in the board - the patch prevents a debug monitor to
> overwrite the RTEMS' Trap Table (this was the reason for a previous post of
> mine, answered by Jiri Gaisler - thanks again for that!).
>
> To use my RTEMS build (the one patched), I created a directory structure
> under /opt/rtems-4.6 equal to the RCC's structure, but with the RTEMS
> libraries I built instead of the ones which came with RCC.
>
> Inside Eclipse the compiler is found, but not the include files like
> "rtems.h" and "bsp.h". My doubt is that if they're exactly in the same place
> as they are in RCC instalation, so why these files are not found? There's
> something more to do that I'm missing?
I do not know if Jiri has changed the invocation of gcc but with the
standard RTEMS tools you must pass in a few arguments to locate BSP
specific .h files and libraries. This is cut and pasted from an ERC32
BSP build here.
-B/opt/rtems-4.6/sparc-rtems/erc32/lib/ -specs bsp_specs -qrtems
In addition, you might have forgotten CPU model CFLAGS like
-mcpu=cypress and maybe -msoft-float if you don't have an FPU.
When you get this working, a Wiki entry on setting this up would be
appreciated. I also want to get to the point where anyone could easily
demo Till's cexp/GeSys on a simulator like qemu using Eclipse to show
off some of the nicer things with RTEMS.
I would also like to see demos of addons like MicroWindows running on
qemu.
With a full set of demos on a standard simulated BSP, then anyone could
easily demonstrate RTEMS and play.
> Thanks in advance,
>
>
> Fabrício de Novaes Kucinskis - DEA / INPE
> -----------------------------------------
> Divisão de Eletrônica Aeroespacial
> Instituto Nacional de Pesquisas Espaciais
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list