simulator/emulators for 8051/8085 on linux

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Hello Everyone,

Is there a good simulator for 8051/8085 muCs on linux? I checked out
sourceforge/freshmeat but was not satisfied with the available
projects. Most of the currently available limit the stack size. Also,
is there a simulator with C compiler bundled together? I am new to
embedded programming and would like to start coding in C (and not
assembly).

Thanks in advance
./h


Re: simulator/emulators for 8051/8085 on linux
Quoted text here. Click to load it

The free C Compiler for 8051 mcus, SDCC, comes with some sort of
simulator. However it is badly documented and I never got anywhere with it.
http://sdcc.sourceforge.net/

Beside that I have never ever found a suitable emulator for 8051 running
under Linux.

HTH,
Matthias
--
PGP-Key: http://www.asmsoftware.de/marndt.pgp ICQ: 40358321
We've slightly trimmed the long signature. Click to see the full one.
Re: simulator/emulators for 8051/8085 on linux
Quoted text here. Click to load it

8051 or 8085?
They are VERY different.

Quoted text here. Click to load it

The best 8051 compilers have a compiled stack and the 8051 is very
limited in stack space anyway.

The better 8051 compilers and AFAIK all the simulators run on Windows.
If you want to do any serious 8051 development you won't be doing it on
Linux.

Quoted text here. Click to load it

Don't start. If you are not interested in doing assembly level
programming don't do embedded. It is as simple as that.

Most embedded programing is in C but you still need to understand the
hardware and the assembly language for the part.


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England    /\/\/\/\/\
/\/\/ snipped-for-privacy@phaedsys.org       www.phaedsys.org \/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/




Re: simulator/emulators for 8051/8085 on linux

Quoted text here. Click to load it

Can't let that go unchallenged Chris. Most of the Windows based simulators
run fine on linux using wine and there very soon will be a very good cross
platform 8051 simulator - watch this space. There are several assemblers
with a native Linux port and of course the SDCC compiler, all of which are
free. Not to mention that there are commercial Linux based IDEs too.

Ian


Re: simulator/emulators for 8051/8085 on linux
Quoted text here. Click to load it

As I said you the serious tools run under windows not Linux. To run them
on Linux you will need a windows emulator.


Quoted text here. Click to load it

But no tools that compare with the commercial windows based tools.


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England    /\/\/\/\/\
/\/\/ snipped-for-privacy@phaedsys.org       www.phaedsys.org \/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/




Re: simulator/emulators for 8051/8085 on linux

 
Quoted text here. Click to load it


I notice you conveniently ignored the last sentence of my post:

"Not to mention that there are commercial Linux based IDEs too.

Ian


Re: simulator/emulators for 8051/8085 on linux
Quoted text here. Click to load it

What does the IDE do? I meant 8051 compilers and simulators.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England    /\/\/\/\/\
/\/\/ snipped-for-privacy@phaedsys.org       www.phaedsys.org \/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/




Re: simulator/emulators for 8051/8085 on linux

Quoted text here. Click to load it

Tasking tools have been available under Linux for several years. No
simulator though. See http://www.altium.com/tasking/news/pressrel0040.html

Ian

Re: simulator/emulators for 8051/8085 on linux
Quoted text here. Click to load it

I wouldn't assume that. About once a year, I get the urge to try Wine using
Windows programs I commonly use, and once a year they all fail in some way.
Its a noble project, but it never seems to complete its goals.


Re: simulator/emulators for 8051/8085 on linux

Quoted text here. Click to load it

I was making no assumptions. I was speaking from personal experience. I have
half a dozen windows 8051 simulators running successfully under wine on my
Linux box.

Ian


Re: simulator/emulators for 8051/8085 on linux

Quoted text here. Click to load it

For stuff about the 8051 the best place to start is 8052.com.


Quoted text here. Click to load it

That might be because the stack size in the 8051 *is* limited.

Quoted text here. Click to load it

Keil (keil.com) do a well respected C complier and simulator.

If you are new to embedded programming then *not* learning assembler is as
unwise as not reading the device data sheet.

Ian

Re: simulator/emulators for 8051/8085 on linux

Quoted text here. Click to load it

You do realize that the 8051 and 8085 are completely different
architectuers?  There are several 8080/8085/Z80 simulators for
Linux.  Most of them were set up to run the CP/M OS.

Quoted text here. Click to load it

Twenty years and five employers ago there was an excellent 8051
simulator written in C that ran under v7 on a PDP-11.  It
simulated all of the standard 8051 peripherals as well as the
basic CPU/memory.  It was an in-house program we used to
test/debug embedded stuff we were writing.  I'm sure it would
run fine on Linux, but that's a moot point since I don't have a
copy.

Quoted text here. Click to load it

Huh?  The 8051 limits the stack size in hardware, so a
simulator had better limit the stack size or it would be much
of a simulator.

Quoted text here. Click to load it

 1) Unless you've got really good reasons to use an 8051 or
    8085, you'd be much better off picking a modern processor.
    If you want to do development under Linux, you're probably
    best off with something supported by GCC.  I'd recommend
    either the Renesas H8 family or the Atmel AVR.

 2) If you want to do embedded stuff, you'll have to learn
    assembly.    

--
Grant Edwards                   grante             Yow!  Loni Anderson's hair
                                  at               should be LEGALIZED!!
We've slightly trimmed the long signature. Click to see the full one.
Re: simulator/emulators for 8051/8085 on linux
Grant, Ian, Chris and Matthias:

Thanks a lot for the information. I agree with you (and others who
replied) about the assembly part. I am currently working with the Keil
compiler that came with the book "Embedded C - by Michael J Pont"
although its a demo compiler (and thus, limited in a few ways).

Ian: do let me know if you have personally used a windows based 8051
simulator that you used in linux via wine. Also, which distro of linux?


Matthias: I have tried SDCC from sourceforge but unfortunately, did not
get anywhere much. I am basically looking for a something that is
primarily a  simulator; am happy with GCC being the compiler.

Grant: Yes, I do realise the differences b/w 8051 and 8085. It's just
that the book I am reading (see above) recommends a newbie start with
these archs since they are relatively simpler. I do not have much of a
personal opinion on this though. Basically, the books have example code
pertinent to 8051. Btw, what is the most commonly used mu-C in embedded
industry these days (I was told, its 8051)?

Any specific online reference that you guys found useful in learning
assembly from scratch (uptill a good level)? I will just go google
anyway..

Thanks a lot for the replies,
Hemant


Re: simulator/emulators for 8051/8085 on linux

Regarding the choice of the 8051/8085.

Yes, the 8051 is still pretty popular.  There are a lot of
vendors selling a lot of different varieties. The 8051
architectuer is also pretty quirky -- especially if you want to
program in C or you need to use external data memory.  The 8085
was considered obsolete 25+ years ago when the Z80 came out.
Forget about the 8085.

Quoted text here. Click to load it

The book must have been written about 20 years ago.

Quoted text here. Click to load it

That depends on how you measure it.  If it's design wins, it's
probably PIC or 8051, though the AVR and various flavors of ARM
are coming on pretty strong the past couple years.

If it's units sold, it's probably a Chinese/Taiwanese 4-bitter
(or possibly one of the 6501-subset parts) that goes into toys.

--
Grant Edwards                   grante             Yow!  Maybe we could paint
                                  at               GOLDIE HAWN a rich PRUSSIAN
We've slightly trimmed the long signature. Click to see the full one.
Re: simulator/emulators for 8051/8085 on linux


Quoted text here. Click to load it

Oh no, the book ("Embedded C") is a 2002 edition. I guess the author
uses 8051 for the reasons of simplicity, if nothing else.

Quoted text here. Click to load it

I will try diversifying my reads and include ARM and PIC (they seem to
be the most commonly mentioned). Thanks for the suggestions.

./h


Re: simulator/emulators for 8051/8085 on linux

Quoted text here. Click to load it

The 8051 I can understand.  It's popular (though not an easy
architecture to learn on).  The choice of the 8085 baffles me.
They were considered obsolete for new projects 20 years ago.
They haven't made them for years.

Quoted text here. Click to load it

The PIC is another quirky architecture that doesn't have good
free or Linux hosted tools.  If you want high-quality free,
linux-hosted tools, I'd recommend the H8, AVR, or ARM.

My advice: if this is a learning experience, pick one that's
cheap and easy to learn rather than the one that's the most
popular in industry. After you've got one architecture under
your belt, move on to the next one.

AVR and ARM are both quite popular.  H8 not quite as much, but
it is an easy part to work with.  Professional grade tools for
all three are free.

--
Grant Edwards                   grante             Yow!  I selected E5... but
                                  at               I didn't hear "Sam the Sham
We've slightly trimmed the long signature. Click to see the full one.
Re: simulator/emulators for 8051/8085 on linux

Quoted text here. Click to load it


Agreed it is quirky but there is quite extensive Linux support for it.

 
Ian

Re: simulator/emulators for 8051/8085 on linux
Quoted text here. Click to load it

I stand corrected.  I wasn't aware of Linux hosted PIC tools.

--
Grant Edwards                   grante             Yow!  Dizzy, are we
                                  at               "REAL PEOPLE" or "AMAZING
We've slightly trimmed the long signature. Click to see the full one.
Re: simulator/emulators for 8051/8085 on linux

Quoted text here. Click to load it

Have a look at http://gputils.sourceforge.net/

Ian

Re: simulator/emulators for 8051/8085 on linux
Quoted text here. Click to load it

No because it is the most widely used, suported and produced MCU on the
planet. There are more 8051's appearing all the time.  Also all 600+
variants will run the same core binary.

Quoted text here. Click to load it

ARM yes but not PIC. PIC does not even have a common word size across
the range.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills  Staffs  England    /\/\/\/\/\
/\/\/ snipped-for-privacy@phaedsys.org       www.phaedsys.org \/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/




Site Timeline