MCAM Compile Instructions.
The compiler I was using is the KEIL C51 development packets. As far as I know
is this the only 80535 compiler availble. You can have suport from
KEIL
by using there WEB site. This compiler cleams to be ANSI compliant but I must
tell you that several function discriped in the ANSI rules are not
implementated in this compiler. So you might find a function usefull for you
to us but could be possibly not implemented in the libraries. Something else
is worth mentioning, most of the library functions do us the internal ram area
of the processor. Be carefull because the internal ram area is also used by
the stack inwhich case you might find that the stack can be corrupted. There
is no stack-checking implemented in the compiler so be carefull. Anyway to
compile the software us the ISHELL program, go to the directory where the
source code resites and load it into ISHELL by klicking on the program itself.
After it is load just klick on Translate if then everything goes alright you
should see NO errors or warnings. If it is compiled you then have to link the
different modules together. This is do via the command line option. Type in
L51 mcam.obj, putchar.obj, startup.obj xdata (4000h) return The linker will
come-up (if you didn't change anything) with 7 warnings. Forget these warnings
they don't have any affect. In fact these are warnings which come in effect
and might hang the software if you gone us RXT 51 which is a small
multi-tasking OS running on the SAB80535 and only then if the function
"C51-STARTUP" is called. This function is only called ones in MCAM
after a reboot. After the linker you have to produce a INTEL HEX file format.
Which is done by using the command line option OH51 mcam return Thats all, now
whats left to do is to burn a eprom.
Summary of actions you should carry-out;
- 1] Start ISHELL.
- 2] Load you source-code by double-klicking on the file name.
- 3] If loaded klick on TRANSLATE.
- 4] If finished type on the command line L51 mcam.obj, putchar.obj,
startup.obj xdata (4000h) ramsize (256) nooverlay
- 5] If finished type on the command line OH51 mcam
- Note : You also can setup a project for ISHELL in which case it does
every-thing automatically for you. I did not setup a project because it's only
one main program.
- Note : Putchar and startup have been changed latter on I will explain why
and how you have to compile then.