Trying to build new module
- Subject: Trying to build new module
- From: "Keith R. Bolson" <krbolson-at-visi.com>
- Date: Sat, 12 Jan 2002 04:14:21 -0600
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
Hi all -
I'm trying to figure out how to compile EMC
for some wire-wrapped FPGA hardware and two motors.
Originally installed from BDI 2.09
I am trying to make a new module for an FPGA based
two-axis DAC & encoder board. I use IRQ5 - fixed
by little red wire-wrap wire; I assume I can leave that for later,
doesn't emc use the CMOS clock anyhow?
Figure to base it upon stgmod.c;
I copied stg.c, stg.h, stgdiag.c and extstgmod.c
to the equivalent fpga files.
I had to re-build everything to get proper directories:
cd /usr/local/rcslib
./buildrcs
cd /usr/local/emc/src
make PLAT=linux_2_2_18 all
make PLAT=rtlinux_3_0 all
Modified the dac writes and encoder reads in fpga.c
(was stg.c) to correspond to my hardware.
Seems to function with fpgadiag (stgdiag),
compiling nonrealtime, PLAT=linux_2_2_18.
Now I'm working on emc.ini - PLAT=nonrealtime
It can't find PARPORT_ADDRESS in emcmot,
which means it thinks I'm using STEPPERs (yuck)
I don't see where I can undefine STEPPER_MOTORS
in the Makefile or elsewhere
Also, perhaps related, I am using
[TASK] TASK=bridgeporttask
and
[EMCIO] EMCIO=minimillio
as left over from pretending to run steppers.
Do I have to build it realtime?
There do not seem to be null choices for task
and io - I don't have any, so how can I disable it?
How does it work with stg boards as a default io,
in that stg.c doesn't provide what emctask or
emcio require? (with its on-board IO)
Thanks for any assistance. --krb
Date Index |
Thread Index |
Back to archive index |
Back to Mailing List Page
Problems or questions? Contact