Quote Originally Posted by MCRIPPPer View Post
terminal always says command not found. does pncconf flash the card or do i still need to figure out how to do it manually?

i created a setup in pncconf using 5i25_dmmbob1x2 (almost exacly like my current setup according to the pin file). but the README file pinout does not match what the .pin file says.
which row is the parallel port pin#? im guessing second row.

README generated by pncconf (only worried about the primary connector right now)

firmware is: 5i25_dmmbob1x2

** Mesa 5i25/configs/hostmot2 -> Board # 0 connector 3 **

connector board num component signal
number position type name
is this
the
pin or
#? this?

P3-1 0 (0 Pulse Width Gen-P) s-pwm-pulse

P3-3 1 (1 GPIO Input) spindle-manual-ccw

P3-5 2 (0 Dir Gen-B) x-stepgen-dir

P3-7 3 (3 GPIO Input) unused-input

P3-9 4 (0 Step Gen-A) x-stepgen-step

P3-11 5 (5 GPIO Input) unused-input

P3-13 6 (1 Dir Gen-B) y-stepgen-dir

P3-15 7 (7 GPIO Input) estop-ext

P3-17 8 (1 Step Gen-A) y-stepgen-step

P3-19 9 (2 Dir Gen-B) z-stepgen-dir

P3-21 10 (2 Step Gen-A) z-stepgen-step

P3-23 11 (11 GPIO Input) unused-input

P3-25 12 (12 GPIO Input) unused-input

P3-27 13 (13 GPIO Input) unused-input

P3-29 14 (14 GPIO Input) unused-input

P3-31 15 (15 GPIO Input) unused-input

P3-33 16 (16 GPIO Output) unused-output

P3-35 17 (0 Not Used) unused-unused

P3-37 18 (0 Not Used) unused-unused

P3-39 19 (0 Not Used) unused-unused

P3-41 20 (0 Not Used) unused-unused

P3-43 21 (0 Not Used) unused-unused

P3-45 22 (0 Not Used) unused-unused

P3-47 23 (0 Not Used) unused-unused

5i25_dmmbob1x2
Configuration pin-out:

IO Connections for P3
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
what number is what?
1 0 IOPort PWMGen 0 PWM (Out)
14 1 IOPort None
2 2 IOPort StepGen 0 Dir (Out) step/ direction seem to be on the pins i want i think?
15 3 IOPort None
3 4 IOPort StepGen 0 Step (Out)
16 5 IOPort None
4 6 IOPort StepGen 1 Dir (Out)
17 7 IOPort None
5 8 IOPort StepGen 1 Step (Out)
6 9 IOPort StepGen 2 Dir (Out)
7 10 IOPort StepGen 2 Step (Out)
8 11 IOPort StepGen 3 Dir (Out)
9 12 IOPort StepGen 3 Step (Out)
10 13 IOPort None
11 14 IOPort QCount 0 Quad-A (In)
12 15 IOPort QCount 0 Quad-B (In)
13 16 IOPort QCount 0 Quad-IDX (In)





another issue i have with any od the configs i made with pncconf is startup error of linuxcnc.

debug section says:

Debug file information:
my_CNC_machine.hal:10: parameter or pin 'hm2_5i25.0.pwmgen.pwm_frequency' not found
2530
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
pncconf does not change the firmware in the FPGA card, only mesaflash can do that

If you get a command not found error with mesaflash it probably means your LinuxCNC installation is not up to date
since mesaflash is installed on the latest linuxcnc versions

So for various reasons I would first update to the latest released version of linuxcnc (2.6.8)
and then use mesaflash to write the desired firmware to the 5I25 card

The hm2_5i25.0.pwmgen.pwm_frequency not found error is expected if the currently loaded firmware does not have a pwm generator

The readme pinout is not a real reference to the pinout, only

sudo mesaflash --device 5i25 --readhmid is

As the header in the printout says, the pinout table fields are:

Pin# (DB25 pin number)
I/O (GPIO number)
Pri function (always I/O port for HostMot2)
Sec Function (StepGen PWMGen etc)
Channel
Pin function (if not GPIO)
Pin direction (if not GPIO)