build RTEMS with arm ADS tools

Ren, Han Tao (Hans) renht at lucent.com
Thu Nov 13 01:49:33 UTC 2003


I built a RTEMS example but failed to load it in AXD(Debugger of ADS), the
error message is "DBE Warning 00255: WIN32 exception code 0xc0000005 was
caught in dbess_image\dbt_image.cpp:160" which I don't quit understand.

I noticed that the sample code for ADS also has ELF format. but it doesn't
has text, data and bss segments.
====================================================
D:\tt>objdump -h dhry.axf

dhry.axf:     file format elf32-little

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 ER_RO         000074cc  00008000  00008000  00000034  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 ER_ZI         00002934  0000f4cc  0000f4cc  00007500  2**2
                  ALLOC
  2 .debug_frame  000026c0  00000000  00000000  00007500  2**0
                  CONTENTS, READONLY, DEBUGGING
  3 .note         00000018  00000000  00000000  0000dcbc  2**2
                  CONTENTS, READONLY
  4 .comment      00002740  00000000  00000000  0000dcd4  2**0
                  CONTENTS, READONLY
====================================================

The BSP I'm using in RTEMS is armulator, can it run in a ARM7TDMI debugger
(simulator)?

I think your suggestion is very good, maybe I can build the sample code and
link the RTEMS libraries by ADS tools.  Now have some other questions, is
"/opt/rtems/arm-rtems/lib/libc.a" the newlib library?  Are
"/opt/rtems/arm-rtems/armulator/lib/librtemsbsp.a librtemscpu.a" the RTEMS
operating system library?  So, Are these three library I should link my
sample code in?  should I also link "start.o" in
"/opt/rtems/arm-rtems/armulator/lib/"?

Thanks a lot!

Hans


-----Original Message-----
From: Joel Sherrill [mailto:joel.sherrill at OARcorp.com]
Sent: Wednesday, November 12, 2003 7:18 PM
To: Ren, Han Tao (Hans)
Cc: rtems-users at rtems.com
Subject: Re: build RTEMS with arm ADS tools


Ren, Han Tao (Hans) wrote:

>Hello
>
>For evaluating our system design, I really need ADS to simulate the system
>performance such like Cache Miss, Memory Bandwidth, etc which can not
>achieves in GDB.
>
>I know RTEMS is built by GNU tools, but are there any way to build it by
ADS
>tools?  Any suggestions are highly appreciated.
>
>  
>
Does it have to be built with the ADS tools? Can the ADS tools read an
executable produced by gcc?

I don't know the details of the ADS tools but in general, the C library and
RTEMS itself all have to be built with a particular toolset. The autoconf
scripts are setup to find a working compler and they woudl have to be
taught
about the ADS tools to find them. Also assembly language formats differences
would have to be addressed.

If possible it would be better to build at least RTEMS with the GNU
tools and
just link against the libraries with the ADS tools.

>Thanks
>
>Hans
>  
>





More information about the users mailing list