# Forum: ARM programming with GCC/GNU tools ARMulator

 Author: jrmymllr j. (jrmymllr) Posted on: 2008-08-05 12:38

Rate this post
 0 ▲ 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.

 Author: Marcus H. (mharnisch) Posted on: 2008-09-08 11:09

Rate this post
 0 ▲ 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.)

 Author: jrmymllr j. (jrmymllr) Posted on: 2008-09-09 12:20

Rate this post
 0 ▲ 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.

 Author: Martin T. (mthomas) (Moderator) Posted on: 2008-09-09 22:32

Rate this post
 0 ▲ 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++.

 Author: Marcus H. (mharnisch) Posted on: 2008-09-10 09:47

Rate this post
 0 ▲ 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

 Author: jrmymllr j. (jrmymllr) Posted on: 2008-09-10 16:19

Rate this post
 0 ▲ 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.

### Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

### Rules — please read before posting

• Post long source code as attachment, not in the text
• Posting advertisements is forbidden.

### Formatting options

• [c]C code[/c]
• [avrasm]AVR assembler code[/avrasm]
• [code]code in other languages, ASCII drawings[/code]
• $formula (LaTeX syntax)$
 Name: E-mail address (not visible): Subject: Searching for similar topics... Attachment: Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one. Text: