Yes enable what is need in the row below maybe it should be put after "loadrt hostmot2".
#debug_idrom=1 debug_module_descriptors=1 debug_pin_descriptors=1 debug_modules=1 > Greetings all; > > Working on a raspi. With an spi configured 7i90 card for i/o > > Is there a way to cause hal to issue some debugging info? > > Specifically this works: > ---------- > halcmd loadrt hostmot2 > halcmd loadrt hm2_rpspi config="num_encoders=1 num_pwmgens=1 num_stepgens=2 > Base:hm2_7i90.0hm2/hm2_7i90.0: 72 I/O Pins used: > hm2/hm2_7i90.0: IO Pin 000 (P1-01): StepGen #0, pin Step (Output) > hm2/hm2_7i90.0: IO Pin 001 (P1-03): StepGen #0, pin Direction (Output) > hm2/hm2_7i90.0: IO Pin 002 (P1-05): StepGen #1, pin Step (Output) > hm2/hm2_7i90.0: IO Pin 003 (P1-07): StepGen #1, pin Direction (Output) > hm2/hm2_7i90.0: IO Pin 004 (P1-09): Encoder #0, pin A (Input) > hm2/hm2_7i90.0: IO Pin 005 (P1-11): IOPort > hm2/hm2_7i90.0: IO Pin 006 (P1-13): Encoder #0, pin B (Input) > hm2/hm2_7i90.0: IO Pin 007 (P1-15): IOPort > hm2/hm2_7i90.0: IO Pin 008 (P1-17): Encoder #0, pin Index (Input) > hm2/hm2_7i90.0: IO Pin 009 (P1-19): IOPort > hm2/hm2_7i90.0: IO Pin 010 (P1-21): IOPort > hm2/hm2_7i90.0: IO Pin 011 (P1-23): IOPort > hm2/hm2_7i90.0: IO Pin 012 (P1-25): IOPort > hm2/hm2_7i90.0: IO Pin 013 (P1-27): IOPort > hm2/hm2_7i90.0: IO Pin 014 (P1-29): IOPort > hm2/hm2_7i90.0: IO Pin 015 (P1-31): IOPort > hm2/hm2_7i90.0: IO Pin 016 (P1-33): IOPort > hm2/hm2_7i90.0: IO Pin 017 (P1-35): IOPort > hm2/hm2_7i90.0: IO Pin 018 (P1-37): IOPort > hm2/hm2_7i90.0: IO Pin 019 (P1-39): IOPort > hm2/hm2_7i90.0: IO Pin 020 (P1-41): PWMGen #0, pin Out0 (PWM or Up) > (Output) > hm2/hm2_7i90.0: IO Pin 021 (P1-43): PWMGen #0, pin Out1 (Dir or Down) > (Output) > hm2/hm2_7i90.0: IO Pin 022 (P1-45): IOPort > hm2/hm2_7i90.0: IO Pin 023 (P1-47): IOPort > [...] > hm2/hm2_7i90.0: registered > > So this is in the .ini file: > [HOSTMOT2] > DRIVER = hm2_rpspi > BOARD = 7i90 > CONFIG = "num_encoders=1 num_pwmgens=1 num_stepgens=2" > > And this in the named .hal file: > > # kinematics > loadrt [KINS]KINEMATICS > #autoconverted trivkins > > # motion controller, get name and thread periods from ini file > loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD > num_joints=[KINS]JOINTS > > # hostmot2 driver > loadrt hostmot2 > > # load low-level driver > loadrt [HOSTMOT2](DRIVER) config=[HOSTMOT2](CONFIG) > > Doesn't work, key missfire messages are: > > LINUXCNC - 2.8.0~pre1 > Machine configuration directory is '/home/pi/linuxcnc/configs/sheldon-lathe' > Machine configuration file is '7i90-axis.ini' > Starting LinuxCNC... > Found file(REL): ./hm2-7i90-stepper.hal > Note: Using POSIX realtime > hm2: loading Mesa HostMot2 driver version 0.15 > Unknown board: HOST???? > hm2_rpspi: rtapi_app_main: Operation not permitted (-1) > ./hm2-7i90-stepper.hal:38: waitpid failed /usr/bin/rtapi_app hm2_rpspi > ./hm2-7i90-stepper.hal:38: /usr/bin/rtapi_app exited without becoming ready > ./hm2-7i90-stepper.hal:38: insmod for hm2_rpspi failed, returned -1 > > This configuration DID work on Nov 29 as I posted then. > > Obviously something has changed, but what, and how do I fix it? > > Whats different is that its a new raspi, and a fresh install. > > Thanks anybody with knowledge of how to get hal to issue debug stuff, > I want to actually see the variable substitutions made in the > loadrt hm2_rpspi line above. > > 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> > > ------------------------------------------------------------------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today.http://sdm.link/intel > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users -- Nicklas Karlsson <[email protected]> ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/intel _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
