I'm looking for signs of life in the I/O and haven't been able to find any -
(If I should open a new thread for this, please let me know...)
I ran:
Code:
sudo mesaflash --device 7C81 --addr /dev/spidev0.0 --spi --fix-boot-block --write 7c81_c5abobx2d.bit
... and rebooted.
Then I ran:
Code:
sudo mesaflash --device 7c81 --addr /dev/spidev0.0 --spi --readhmid
which gave me
Code:
...
Configuration pin-out:
IO Connections for P1+Serial -> 7C81_0
Pin# I/O Pri. func Sec. func Chan Sec. Pin func Sec. Pin Dir
P1-01/DB25-01 0 IOPort PWM 0 PWM (Out)
P1-02/DB25-14 1 IOPort None
P1-03/DB25-02 2 IOPort StepGen 4 Step/Table1 (Out)
P1-04/DB25-15 3 IOPort None
P1-05/DB25-03 4 IOPort StepGen 4 Dir/Table2 (Out)
P1-06/DB25-16 5 IOPort StepGen 3 Step/Table1 (Out)
P1-07/DB25-04 6 IOPort StepGen 0 Step/Table1 (Out)
P1-08/DB25-17 7 IOPort StepGen 3 Dir/Table2 (Out)
P1-09/DB25-05 8 IOPort StepGen 0 Dir/Table2 (Out)
P1-11/DB25-06 9 IOPort StepGen 1 Step/Table1 (Out)
P1-13/DB25-07 10 IOPort StepGen 1 Dir/Table2 (Out)
P1-15/DB25-08 11 IOPort StepGen 2 Step/Table1 (Out)
P1-17/DB25-09 12 IOPort StepGen 2 Dir/Table2 (Out)
P1-19/DB25-10 13 IOPort None
P1-21/DB25-11 14 IOPort QCount 0 Quad-A (In)
P1-23/DB25-12 15 IOPort QCount 0 Quad-B (In)
P1-25/DB25-13 16 IOPort QCount 0 Quad-IDX (In)
P5 3,6 17 IOPort SSerial 0 TXData0 (Out)
P6 3,6 18 IOPort SSerial 0 TXData1 (Out)
...
Looking in the PIN_ file, I see:
(just showing P1; simplified for clairity)
Code:
...
26 HDR DB25
00 PWM PIN 01 PIN 01 Spindle DAC PWM
00 Null PIN 02 PIN 14 just GPIO
04 StepGen PIN 03 PIN 02 B Step
00 Null PIN 04 PIN 15 just GPIO
04 StepGen PIN 05 PIN 03 B Dir
03 StepGen PIN 06 PIN 16 A Step
00 StepGen PIN 07 PIN 04 X Step
03 StepGen PIN 08 PIN 17 A Dir
00 StepGen PIN 09 PIN 05 X Dir
01 StepGen PIN 10 PIN 06 Y Step
01 StepGen PIN 11 PIN 07 Y Dir
02 StepGen PIN 12 PIN 08 Z Step
02 StepGen PIN 13 PIN 09 Z Dir
00 Null PIN 14 PIN 10 Input 1 just GPIO
00 QCount PIN 15 PIN 11 Input 2 (Quad A)
00 QCount PIN 16 PIN 12 Input 3 (Quad B)
00 QCount PIN 17 PIN 13 Input 4 (Quad Idx)
00 SSerial I/O 17
00 SSerial I/O 18
...
And I ran the Pncconf Wizard with as many of the default settings as possible for a 3-step/dir and 1-PWM machine. I used INI substitution, unchecked any options under "Defaults and Options", and configured temporarily for "5i25-Internal Data" with "G540x2" almost identically to how it was done in this video (except for XYZ and not just XY):
I then adjusted the card name in the INI from "hm2_5i25" to "hm2_7c81", and updated the HAL file with "loadrt hm2_rpspi ..." to account for being on a RapsberryPi.
I then pulled out my oscilloscope to check for signs of life on the x-axis' step pin, as below:
I then proceeded to manually jog along the x-axis and looked to see if the oscilloscope saw anything as I did.
All it saw, at any resolution, was a solid 5.129 volts; no waveform at all...
I check other pins in this manner, and it's all more-or-less the same story at 5 volts or 0 volts.
What am I doing wrong?