2011/4/30 Viesturs Lācis <viesturs.la...@gmail.com>: > 2011/4/30 Peter C. Wallace <p...@mesanet.com>: >> >> The easiest thing is to start with the example configurations, if you just >> select hm2-stepper/7i43-big (if you have a 400K 7I43) from the EMC menus, >> that >> should load the appropriate firmware and start EMC. If it does not, there is >> an interface issue.
I am getting error on EMC startup: 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/robot/emc2/configs/hm2-stepper' Machine configuration file is '7i43-small.ini' INIFILE=/home/robot/emc2/configs/hm2-stepper/7i43-small.ini PARAMETER_FILE=hm2-stepper.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=2791 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 Input/output error hm2-stepper.hal:41: exit value: 1 hm2-stepper.hal:41: insmod failed, returned -1 See the output of 'dmesg' for more information. 2791 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components Kernel message information: [ 510.872980] I-pipe: Domain RTAI registered. [ 510.872995] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03. [ 510.873002] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) . [ 510.873123] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [ 510.873129] PIPELINE layers: [ 510.873135] fcce7e20 9ac15d93 RTAI 200 [ 510.873141] c085cb20 0 Linux 100 [ 510.919660] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. [ 510.920444] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes. [ 510.920456] RTAI[sched]: hard timer type/freq = APIC/12500388(Hz); default timing: periodic; linear timed lists. [ 510.920463] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1799823000 hz. [ 510.920469] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns. [ 510.920738] RTAI[usi]: enabled. [ 510.996639] RTAI[math]: loaded. [ 511.108509] hm2: loading Mesa HostMot2 driver version 0.15 [ 511.117578] hm2_7i43: loading HostMot2 Mesa 7i43 driver version 0.3 [ 511.119728] hm2_7i43: /DONE is not low after CPLD reset! [ 511.119801] hm2_7i43.0: firmware: requesting hm2/7i43/SVST4_4S.BIT [ 511.125456] hm2_7i43: /DONE is not low after CPLD reset! [ 511.125484] hm2/hm2_7i43.0: failed to reset fpga, aborting hm2_register [ 511.125498] hm2_7i43.0: board at (ioaddr=0x0378, ioaddr_hi=0x0778, epp_wide ON) not found! [ 511.741097] hm2: unloading [ 511.816046] RTAI[math]: unloaded. [ 511.873064] SCHED releases registered named ALIEN RTGLBH [ 511.937512] RTAI[malloc]: unloaded. [ 512.036047] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). [ 512.042014] I-pipe: Domain RTAI unregistered. [ 512.042147] RTAI[hal]: unmounted. It isD525 board, LPT port is enabled and set to EPP in BIOS. /proc/ioports has this line: 0378-037a : parport0 And that tells me that parport address 0x0378 is correct. What am I missing here? What does it mean - "failed to reset fpga"? Also I am suspicious about "ioaddr_hi=0x0778". What does it mean? I have hostmot2-firmware-7i43-2 and hostmot2-firmware-7i43-4 packages installed in Synaptic package manager. Both of them are version 0.8 Any ideas, where should I look? And one more question: My 7i43 board should take care of 6 stepper drives. How do I specify, which I/O pin of the 7i43 is step and which is dir pin for a particular joint? I have attached 7i42 board and have already wired the stepper drives. I am planning on attaching 7i37 card on the second 50-pin connector to provide inputs from homing switches. Viesturs ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users