On Mon, 28 Jul 2014, Ralph Stirling wrote: > Date: Mon, 28 Jul 2014 21:36:06 +0000 > From: Ralph Stirling <ralph.stirl...@wallawalla.edu> > Reply-To: "Enhanced Machine Controller (EMC)" > <emc-users@lists.sourceforge.net> > To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net> > Subject: Re: [Emc-users] question on 5i25+(2)7i76 > > Thanks, Andy! That did indeed reveal the pins we need. I think pncconf > has a problem with the 2x7i76, but my student should be able to proceed > now. > > I tried the same "show pin" on my BSPI configuration, but alas, no bspis show > up. So the bspi support in hostmot2.c must have some difficulties. > > halcmd: loadrt probe_parport > halcmd: loadrt hostmot2 > halcmd: loadrt hm2_7i43 config="firmware=hm2/7i43-4/SVSTSPI4_6.BIT > num_bspis=1 " > halcmd: show pin > > Dmesg shows the seven BSPI pins, but show pin does not.
The BSPI support does work in master (just verified with 7I65) I'm not sure there are any HAL accessible BSPI pins here are the applicable INI and HAL file bits of a 7I65 config INI: [HOSTMOT2] DRIVER=hm2_pci BOARD=5i24 CONFIG="num_encoders=8 num_bspis=1" HAL: # load low-level driver loadrt [HOSTMOT2](DRIVER) config=[HOSTMOT2](CONFIG) loadrt mesa_7i65 bspi_chans=hm2_5i24.0.bspi.0 > > Sorry to infect one thread with another :-). I've got way too many > simultaneous > LinuxCNC projects going on right now... > > Thanks again, > -- Ralph > ________________________________________ > From: andy pugh [bodge...@gmail.com] > Sent: Monday, July 28, 2014 2:08 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] question on 5i25+(2)7i76 > > On 28 July 2014 21:46, Ralph Stirling <ralph.stirl...@wallawalla.edu> wrote: > >> We are perfectly happy to hand edit the hal file, but do not know >> the syntax for specifying the second 7i76. Random (educated) >> guesses have not been successful. > > I think that if you have 5i25.0.7i76.0.0.gpio.NN then the second 7i76 > will be 5i25.0.7i76.1.0.gpio.NN > > You shouldn't actually need to do anything to see the GPIO on the > second 7i76. As long as there is Field Power, it will self-declare to > the driver > > halrun > loadrt hostmot2 > loadrt hm2_pci > show pin > > Will give you a dump of all the default pins,and should include both 7i76s. > > You might like to use the use_serial_numbers option to disambiguate the cards. > (Which seems to be undocumented, even though I remember documenting > it, and the code is there) > http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/hal/drivers/mesa-hostmot2/hostmot2.c;h=94168e1e00f4c65eef09754ef415ffc0c0e814f0;hb=refs/heads/2.6#l56 > > > > > -- > atp > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > Peter Wallace Mesa Electronics (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users