On Wednesday 29 August 2018 08:30:37 andy pugh wrote:

> On Wed, 29 Aug 2018 at 13:08, Gene Heskett <[email protected]> wrote:
> > Put a # in front of TWOPASS and it Just Works. No other changes.
>
> So you don't have a TWOPASS-compatible set of config files. That's
> nothing to do with lincurve.
>
> http://linuxcnc.org/docs/html/hal/twopass.html
> try adding ,verbose,nodelete
>
> It looks almost as if the loadrt hostmot2 line has "grown" some
> spurious brackets

I see that, but no clue where they may originate from

>From the ini file: (word wrap off)

[HOSTMOT2]
DRIVER                          =       hm2_rpspi
BOARD                           =       7i90
CONFIG                          =       "num_encoders=4 num_pwmgens=1 
num_stepgens=4"

The quotes are required.

from the main .hal:
# hostmot2 driver
loadrt hostmot2

# load low-level driver
loadrt  [HOSTMOT2](DRIVER) config=[HOSTMOT2](CONFIG) spiclk_rate=41666 
spiclk_rate_rd=25000

spiclk_rate is write speed, spiclk-rate_rd is read back speed from the 7i90 to 
the pi.

Speeds are in kilohertz.

This is custom for Bertho's rpspi.so driver, and may vary with the cable length.
mine is a hair over 2" from pi pin to 7i90 pin, source terminated nominally in
the center of that 2"
. 
Now with TWOPASS = on,verbose,nodelete

And I get:
First error showing in the terminal is in processing the tcl as echo'd 
to the terminal screen:

hm2: loading Mesa HostMot2 driver version 0.15
twopass: loadrt hm2_rpspi {config={"num_encoders=4 num_pwmgens=1 
num_stepgens=4"}} spiclk_rate=41666 spiclk_rate_rd=25000
hm2/hm2_7i90.0: invalid token in config string: "{num_encoders=4"
hm2_rpspi: hm2_register() failed for SPI0/CE0.
hm2_rpspi: rtapi_app_main: Invalid argument (-22)

twopass: load_the_modules cmd=<orig_loadrt hm2_rpspi {config={"num_encoders=4 
num_pwmgens=1 num_stepgens=4"}} spiclk_rate=41666 spiclk_rate_rd=25000>
waitpid failed /usr/bin/rtapi_app hm2_rpspi
/usr/bin/rtapi_app exited without becoming ready
insmod for hm2_rpspi failed, returned -1

Looks as if the config option is being applied wrong after twopass is in effect.

Can an .ini [HOSTMOT2] change fix this? Two config statements perhaps?
OTOH, that 7i90 config has got to be transmitted thru rpspi.so.

Your thoughts?

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to