"Free" Assembler And Emulator For The 68HC11/12?
V. asks: "Our local LUG is working on a roving webcam robot. In order
to drive the motors we are planning to use a 68HC12 ucontroller.
I've found some patches against an old release of gcc and egcs
that will add support for this ucontroller but I don't think
they are part of the normal gcc distribution. I'm wondering
if anyone knows where I can find a Free(as in GPL) assembler
and emu for the 68HC12 that aren't a pain to compile/install.
I doubt there is anything apt-get-able but then again I really
wouldn't know since the extent of my assembler and hardware
experience is working with xspim for about a semester many moons ago."
Freshmeat is your friend. This then points you at the ASM11 assembler, which then leads you to the 68HCxx webring.
That should get you started.
I recently used this toolchain in a EE senior design project (at school) and it saved me a lot of time and headache. Write your code in C, compile and link it for the 68HC12, and download it. Could not be easier. There is also a mailing list to post questions/problems to about this port as well.
The 68HC12 is a great microcontroller, and with these tools, Linux becomes an excellent development host. Good luck!- ---------------------------------
------------------------------------------
-------------------------------
"For to me to live is Christ, and to die is gain." - Phil. 1:21 (KJV)
As far as I know there is not much support for hc12 assembly under Linux. If you know or are willing to learn Bison and Flex you may be inclined to write your own assembler. Appendix A of the M68EVB912B32 Evaluation Board User's Manual describes the S-Record Format for the files that get downloaded to the board and the 68HC12 CPU 12 Reference Manual gives the object code for each instruction.
I'd love to see links to a page about this device or other similar ones that other people have made...Here's a link to Cye, a sub-$1000 robot that could carry around a wireless webcam if so desired.
When I took a microprocessors class several years ago, we used free C compilers and Assemblers for the 68HC11, but unfortunately they were for MS-DOS.
I got the source for the assembler from motorolla and modified it to work with linux. the only problem I had was I had to disable output or not us the % in my source code. the original source is here. http://www.mot.com/pub/SPS/MCU/mcu12/
-- Proud member of the Jello Sex Cult.
check out the "encoder" link at http://www.seattlerobotics.org They were very helpful for robotics projects using PIC and 68xx uCs.