7C81 - It appears that I have the wrong BOB, what now?

More
3 years 4 months ago #274348 by MrRekt
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? 

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #274349 by PCW
If all signal pins are at 5V I would suspect a watchdog bite.

(pins 18..25 should be grounded)

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago - 3 years 4 months ago #274351 by MrRekt
I went ahead and grounded pins 18-25, and no joy.

If if the watchdog was triggered, how do I check?
I assume that it would keep me from moving anything, but Hal Meter says steps are still being sent:


- edit -
 
Doesn't seem to be the watchdog...

If it's any help, the only LOW pins are "X Dir" at 0.05V and "Z Dir" at 0.00V... "Y Dir" is HIGH for whatever reason. Even pins that I don't use are HIGH, like step and direction for both A and B axis. (I'm referencing the PIN_ file provided to me previously in this thread)
Last edit: 3 years 4 months ago by MrRekt. Reason: Added additional notes.

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #274390 by PCW
Can you check that All I/O pins are high when LinuxCNC is not running?

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #274412 by MrRekt
I can report that all pins behave as I previously posted regardless of LinuxCNC - even while the Pi is booting. One thing I have yet to report is that the first line after running nearly anything with mesaflash is:
Code:
unable to set bpw32, fallback to bpw8
I don't know if this is meaningful in any way.
I checked my DB25 to 26pin cable for continuity; it works as expected.
Lastly, the amber led on the 7C81 turns on immediately at boot - which I understand to mean a valid profile has been loaded. Perhaps not a surprise, but SPI does seem to be working fine by every indication.

While likely unrelated - I am noticing that power/signals from any source have a ~1Hz "pulse" of maybe 0.03V when inspecting with my oscilloscope.

Please let me know what other diagnostics I can provide.

Please Log in or Create an account to join the conversation.

More
3 years 4 months ago #274413 by PCW
If _any_ I/O pin is low when the 7C81 powered but not running LinuxCNC
then is is likely that the 7C81 has been damaged.
The following user(s) said Thank You: MrRekt

Please Log in or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.073 seconds
Powered by Kunena Forum