EmbDev.net

Forum: ARM programming with GCC/GNU tools ARMulator


von jrmymllr j. (jrmymllr)


Rate this post
useful
not useful
I'm a little confused about ARMulator...I found downloads on
www.arm.com, but upon examining the extracted files, it appears there is
no executable.  So, my question is, in order to use ARMulator must it,
or another product be purchased, or can it work with something open
source, such as Eclipse?  I have not been able to get any simulation
working for the Cortex-M3 and would like this capability, but it
wouldn't be worth it for me to spend hundreds on commercial software.

von Marcus H. (mharnisch)


Rate this post
useful
not useful
Hi Jerry

Jerry Milner wrote:
> So, my question is, in order to use ARMulator must it,
> or another product be purchased, or can it work with something open
> source, such as Eclipse?

ARMulator (RVISS) does not work standalone. It connects to a debugger
via a management process (rvbroker). In principle it should be able to
connect to it if you knew the protocol. But why bother? You paid for a
RVDS license anyway and can use RVD, which isn't too shabby.

> I have not been able to get any simulation
> working for the Cortex-M3 and would like this capability, but it
> wouldn't be worth it for me to spend hundreds on commercial software.

Tough luck. RVISS does not support CM3. ISSM does. Same restrictions as
above.

Regards,
Marcus (Doulos Ltd.)

von jrmymllr j. (jrmymllr)


Rate this post
useful
not useful
Marcus Harnisch wrote:
> Hi Jerry
>
> Jerry Milner wrote:
>> So, my question is, in order to use ARMulator must it,
>> or another product be purchased, or can it work with something open
>> source, such as Eclipse?
>
> ARMulator (RVISS) does not work standalone. It connects to a debugger
> via a management process (rvbroker). In principle it should be able to
> connect to it if you knew the protocol. But why bother? You paid for a
> RVDS license anyway and can use RVD, which isn't too shabby.
>
>> I have not been able to get any simulation
>> working for the Cortex-M3 and would like this capability, but it
>> wouldn't be worth it for me to spend hundreds on commercial software.
>
> Tough luck. RVISS does not support CM3. ISSM does. Same restrictions as
> above.
>
> Regards,
> Marcus (Doulos Ltd.)
Actually I don't use RVD or any of the products you mentioned.  I use
Eclipse and OpenOCD for on-target debugging.  However I'd like to get a
simulator working so I can run my code without the target, even if the
peripherals aren't simulated (only the core).  I have not been able to
do this so far.  gdb in simulator mode won't work.  I can't believe
there isn't a simulator for ARM.

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
> Actually I don't use RVD or any of the products you mentioned.  I use
> Eclipse and OpenOCD for on-target debugging.  However I'd like to get a
> simulator working so I can run my code without the target, even if the
> peripherals aren't simulated (only the core).  I have not been able to
> do this so far.  gdb in simulator mode won't work.  I can't believe
> there isn't a simulator for ARM.

You have asked for a free Cortex-M3 simulator. Now just a "simulator for
ARM"

Read about target sim in arm-elf/eabi-gdb (intro i.e. here:
http://www.mikrocontroller.net/articles/Using_arm-elf-run). It is a core
simulator but AFAIK there is no Cortex-M3-support so far.

For Cortex-M3 there should be some support in Keil/ARM uVision (I have
just played with ARM7TDMI simulations some time ago). A free
non-commecial 16kB (32kB?) limited version is available from keil.com .
So just give it a try. It can be used with elf-files generated with GNU
tools. Support for GNU tools has been improved anyway so no more "ticks"
needed when using uVision with "modern" GNU tools. It seems Keil/ARM
somehow provides "official" support (documents, examples) when using CS
G++.

von Marcus H. (mharnisch)


Rate this post
useful
not useful
Hi Jerry

Jerry Milner wrote:
> Actually I don't use RVD or any of the products you mentioned.  I use
> Eclipse and OpenOCD for on-target debugging.

Sorry, I was confused when you mentioned that you downloaded RVISS (aka
ARMulator). I didn't know there were any public downloads but RVDS
patches. The
conclusion was that you must be a licensee. Thinking about it, I am not
even
sure that there is a full-product RVDS download area at all.

> I can't believe there isn't a simulator for ARM.

Martin is right, depending on your application the 16KB limited version
of Keil
MDK might suffice.

Regards
Marcus

von jrmymllr j. (jrmymllr)


Rate this post
useful
not useful
Martin Thomas wrote:
>> do this so far.  gdb in simulator mode won't work.  I can't believe
>> there isn't a simulator for ARM.
>
> You have asked for a free Cortex-M3 simulator. Now just a "simulator for
> ARM"
>
> Read about target sim in arm-elf/eabi-gdb (intro i.e. here:
> http://www.mikrocontroller.net/articles/Using_arm-elf-run). It is a core
> simulator but AFAIK there is no Cortex-M3-support so far.
>
> For Cortex-M3 there should be some support in Keil/ARM uVision (I have
> just played with ARM7TDMI simulations some time ago). A free
> non-commecial 16kB (32kB?) limited version is available from keil.com .
> So just give it a try. It can be used with elf-files generated with GNU
> tools. Support for GNU tools has been improved anyway so no more "ticks"
> needed when using uVision with "modern" GNU tools. It seems Keil/ARM
> somehow provides "official" support (documents, examples) when using CS
> G++.

Sorry, I still mean CM3 when I say ARM, although now I realize ARM would
be considered a specific family of cores different from CM3.  I am aware
of the Keil tool, but the program size limit is a problem.  Maybe I
could simulate pieces of my code, although this won't work in all cases.
I've tried QEMU but have trouble getting that to work.  The
documentation for that seems sparse.

Oh well, only time will improve availability of good open-source tools
for CM3.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.