Hello gentlemen!

I am stuck with getting 7i43 to be recognized by EMC2.
I (believe, that I) have 7i43-U-4,
jumpers on the board are set as follows:
W1 - up
W2 - up
W3 - up
W4 - down
W5 - down
W6 - down
W7 - up
The board is connected to external +5V power source.

I have EMC 2.4.6, Lucid and D510MO.

If I select "stepper gantry" sample config, EMC starts without errors.

Since I want to use 7i43, I want to start with some sample config for
7i43. The only change I did to the sample config was changing firmware
to SVST6_6.BIT, which was kindly provided by Peter Wallace.

This is the error message I get for hm2_servo/7i43-big:

Print file information:
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
EMC2_TCL_DIR=/usr/share/emc/tcl
EMC2_SCRIPT_DIR=
EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.5
EMC2 - 2.4.6
Machine configuration directory is '/home/waterjet/emc2/configs/hm2-servo'
Machine configuration file is '7i43-big.ini'
INIFILE=/home/waterjet/emc2/configs/hm2-servo/7i43-big.ini
PARAMETER_FILE=hm2-servo.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=
DISPLAY=axis
NML_FILE=
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=3043
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
insmod: error inserting
'/usr/realtime-2.6.32-122-rtai/modules/emc2/hm2_7i43.ko': -1 Invalid
parameters
hm2-servo.hal:46: exit value: 1
hm2-servo.hal:46: insmod failed, returned -1
See the output of 'dmesg' for more information.
3043
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[  768.170505] I-pipe: Domain RTAI registered.
[  768.170521] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[  768.170527] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu
4.4.3-4ubuntu5) .
[  768.170613] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE
(INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[  768.170618] PIPELINE layers:
[  768.170624] fd814e20 9ac15d93 RTAI 200
[  768.170629] c085cb20 0 Linux 100
[  768.224358] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[  768.224752] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with
RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[  768.224765] RTAI[sched]: hard timer type/freq = APIC/10416698(Hz);
default timing: periodic; linear timed lists.
[  768.224773] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq
= 1666772000 hz.
[  768.224779] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[  768.224922] RTAI[usi]: enabled.
[  768.430363] RTAI[math]: loaded.
[  768.595052] hm2: loading Mesa HostMot2 driver version 0.15
[  768.606662] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3
[  768.609263]  hm2_7i43.0: firmware: requesting hm2/7i43-4/SVST6_6.BIT
[  768.614416] hm2/hm2_7i43.0: board has FPGA '3s200tq144', but the
firmware in hm2/7i43-4/SVST6_6.BIT is for FPGA '3s400tq144'
[  768.614434] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778,
epp_wide ON) not found!
[  769.463749] hm2: unloading
[  769.567825] RTAI[math]: unloaded.
[  769.677256] SCHED releases registered named ALIEN RTGLBH
[  769.709491] RTAI[malloc]: unloaded.
[  769.808029] RTAI[sched]: unloaded (forced hard/soft/hard
transitions: traps 0, syscalls 0).
[  769.815910] I-pipe: Domain RTAI unregistered.
[  769.816049] RTAI[hal]: unmounted.


There are 2 things I see in the error output:
First thing is this line:
hm2/hm2_7i43.0: board has FPGA '3s200tq144', but the firmware in
hm2/7i43-4/SVST6_6.BIT is for FPGA '3s400tq144'

It appears to me that EMC thinks - I have 200K version.
I had similar problem, when I was setting up welding robot. Following
points were mentioned as potentia causes:
1. Port not really in EPP mode
2. Parallel port - 7I43 Cable not right
3. Port address wrong
4. 7I43 not set to parallel mode
5. No power or wrong 7I43 power

I checked for all of these:
1) parport set to EPP in BIOS
2) checked with multimeter all the cable pins
3) In /proc/ioports
I have this line:
0378-037a : parport0

And "stepper gantry" sample config runs correctly with:
loadrt hal_parport cfg="0x0378"

I tried other addresses and received error, so address should be correct

4) jumpers are set as mentioned above and checked at least 4 times, if
they _really_ are set as mentioned above.

5) checked also power, but did not find anything - all 3 LEDs turn on
as soon as PC is turned on



Second thing is this line:
hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, epp_wide ON) not found!

As I mentioned, in /proc/ioports
I have this line:
0378-037a : parport0

Running lspci -v in terminal does not reveal anything related to parallel port.

Stepper gantry sample config runs correctly with 0x0378.

I would like to check, if parallel port is working correctly, but do
not know, how to do it in a simple way.

I would appreciate any ideas, where to look.
Thanks!

Viesturs

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to