Need help with 7i96 card that stoped working.

More
26 Jul 2021 18:51 #215974 by oficinerobotica
Please some kind soul  help to understand if my card went bust or it can be recovered.
The problem is that the card was working then all of a sudden stopped  with all the lights off. Changing the usb charger( I know I need a proper power supply) relighted the card but initially I couldn't ping it. After a few power cycles I was able to ping the card that is on 10.10.10.10 but always got an error when tring to test a axis in pncconf.
I sometimes got the solid red INIT led and searching the forum I reflashed the card with mesaflash.
Now the card can be pinged and axis starts whibout any errors but the steppers won't move. When Axis starts cr1 to cr4 leds stay solid green on. When Axis is closed the INIT led turns solid red.
This is how far I can get. If someone can help me I would be forever grateful as these cards are costly to have them here in Europe.(250€ after tax and shipping)
 

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

More
26 Jul 2021 18:58 #215975 by oficinerobotica
Some additional info.
If I do mesaflash --device 7i96 --verbose I get:
No 7I96 board found

Instead, this is the output of mesaflash --device 7i96 --addr 10.10.10.10 --readhmid

```
General configuration information:

  BoardName : MESA7I96
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 3
  Width of one I/O port: 17
  Clock Low frequency: 100.0000 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: DPLL
  There are 1 of DPLL in configuration
  Version: 0
  Registers: 7
  BaseAddress: 7000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 3 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: PWM
  There are 1 of PWM in configuration
  Version: 0
  Registers: 5
  BaseAddress: 4100
  ClockFrequency: 200.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: StepGen
  There are 8 of StepGen in configuration
  Version: 2
  Registers: 10
  BaseAddress: 2000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: QCount
  There are 2 of QCount in configuration
  Version: 2
  Registers: 5
  BaseAddress: 3000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: SSerial
  There are 1 of SSerial in configuration
  Version: 0
  Registers: 6
  BaseAddress: 5B00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

  Module: SSR
  There are 1 of SSR in configuration
  Version: 0
  Registers: 2
  BaseAddress: 7D00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for TB3
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1      0   IOPort       None           
14      1   IOPort       None           
 2      2   IOPort       None           
15      3   IOPort       None           
 3      4   IOPort       None           
16      5   IOPort       None           
 4      6   IOPort       None           
17      7   IOPort       None           
 5      8   IOPort       None           
 6      9   IOPort       None           
 7     10   IOPort       None           
 8     11   IOPort       SSR              0        Out-00          (Out)
 9     12   IOPort       SSR              0        Out-01          (Out)
10     13   IOPort       SSR              0        Out-02          (Out)
11     14   IOPort       SSR              0        Out-03          (Out)
12     15   IOPort       SSR              0        Out-04          (Out)
13     16   IOPort       SSR              0        Out-05          (Out)

IO Connections for TB1/TB2
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1     17   IOPort       StepGen          0        Step/Table1     (Out)
14     18   IOPort       StepGen          0        Dir/Table2      (Out)
 2     19   IOPort       StepGen          1        Step/Table1     (Out)
15     20   IOPort       StepGen          1        Dir/Table2      (Out)
 3     21   IOPort       StepGen          2        Step/Table1     (Out)
16     22   IOPort       StepGen          2        Dir/Table2      (Out)
 4     23   IOPort       StepGen          3        Step/Table1     (Out)
17     24   IOPort       StepGen          3        Dir/Table2      (Out)
 5     25   IOPort       StepGen          4        Step/Table1     (Out)
 6     26   IOPort       StepGen          4        Dir/Table2      (Out)
 7     27   IOPort       QCount           0        Quad-A          (In)
 8     28   IOPort       QCount           0        Quad-B          (In)
 9     29   IOPort       QCount           0        Quad-IDX        (In)
10     30   IOPort       SSerial          0        RXData0         (In)
11     31   IOPort       SSerial          0        TXData0         (Out)
12     32   IOPort       SSerial          0        TXEn0           (Out)
13     33   IOPort       SSR              0        AC Ref          (Out)

IO Connections for P1
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1     34   IOPort       PWM              0        PWM             (Out)
14     35   IOPort       None           
 2     36   IOPort       StepGen          5        Step/Table1     (Out)
15     37   IOPort       None           
 3     38   IOPort       StepGen          5        Dir/Table2      (Out)
16     39   IOPort       None           
 4     40   IOPort       StepGen          6        Step/Table1     (Out)
17     41   IOPort       None           
 5     42   IOPort       StepGen          6        Dir/Table2      (Out)
 6     43   IOPort       StepGen          7        Step/Table1     (Out)
 7     44   IOPort       StepGen          7        Dir/Table2      (Out)
 8     45   IOPort       None           
 9     46   IOPort       None           
10     47   IOPort       None           
11     48   IOPort       QCount           1        Quad-A          (In)
12     49   IOPort       QCount           1        Quad-B          (In)
13     50   IOPort       QCount           1        Quad-IDX        (In)

```


 

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

More
26 Jul 2021 19:10 - 26 Jul 2021 19:11 #215977 by PCW
I would first start with a decent 5V power supply.
Most errors look power supply related.

(its expected to have the INIT led light on exit from LinuxCNC, this shows that the watchdog bit)
Last edit: 26 Jul 2021 19:11 by PCW.
The following user(s) said Thank You: oficinerobotica

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

More
26 Jul 2021 19:18 #215978 by oficinerobotica
Thank you. I ordered a MeanWell RS-25-5 25W 5V 5A industrial power supply and I will update you when it arrives.

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

More
29 Jul 2021 06:25 #216190 by oficinerobotica
So the power supply  arrived but still no luck at getting steps.

I managed to get an output from:
mesaflash --device 7i96 --addr 10.10.10.10 --verbose

ETH device 7I96 at ip=10.10.10.10
Communication:
  transport layer: ethernet IPv4 UDP
  ip address: 10.10.10.10
  mac address: 00:60:1B:16:03:24
  protocol: LBP16 version 3
Board info:
  Flash size: 16Mb (id: 0x14)
  Connectors count: 3
  Pins per connector: 17
  Connectors names: TB3 TB1/TB2 P1
  FPGA type: 6slx9tqg144
  Number of leds: 4
Board firmware info:
  memory spaces:
    0: HostMot2 (registers, RW, 32-bit) [size=64K]
    1: KSZ8851 (registers, RW, 16-bit)
    2: EtherEEP (EEPROM, RW, 16-bit) , page size: 1, erase size: 1
    3: FPGAFlsh (flash, RW, 32-bit) [size=16M], page size: 256, erase size: 65536
    4: Timers (memory, RW, 16-bit)
    6: LBP16RW (memory, RW, 16-bit)
    7: LBP16RO (memory, RO, 16-bit)
  [space 0] HostMot2
  [space 2] Ethernet eeprom:
    mac address: 00:60:1B:16:03:24
    ip address: 10.10.10.10
    board name: 7I96
    user leds: eth debug
  [space 3] FPGA flash eeprom:
    flash size: 16Mb (id: 0x14)
  [space 4] timers:
    uSTimeStampReg: 0x3B80
    WaituSReg: 0x0000
    HM2Timeout: 0x0000
  [space 6] LBP16 control/status:
    packets received: all 63473, UDP 63352, bad 0
    packets sent: all 32629, UDP 32623, bad 0
    parse errors: 0, mem errors 0, write errors 0
    error flags: 0x0000
    debug LED ptr: 0x0008
    scratch: 0x0000
  [space 7] LBP16 info:
    board name: 7I96
    LBP16 protocol version 3
    board firmware version 17
    IP address jumpers at boot: fixed from EEPROM

 

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

More
29 Jul 2021 13:37 #216218 by PCW
Do you get any errors from LinuxCNC?

You might measure the step voltage with a meter both before LinuxCNC is launched and when LinuxCNC is running to see if you have about 5V in one case and about 0V in the other.

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

More
29 Jul 2021 14:21 #216223 by oficinerobotica
I measured the voltage between DIR+ and DIR- on the board before and after starting LinuxCNC. In both cases I get 4.8V . In fact I measured the voltage powering only the card and I always get 5V. I also get no voltage variation when measuring between DIR+ and DIR- .

Is it normal to always have 5V between those terminals?

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

More
29 Jul 2021 14:28 #216226 by PCW
It is but it should change if you jog in different directions

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

More
29 Jul 2021 14:42 #216229 by oficinerobotica
Now the big question is this; is it possible that a current spike has fried only the step generation part of the board or it usually makes the whole thing unusable? This setup was working correctly so I'm tending to exclude wiring problems.
By the way, thank you so much for the help.

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

More
29 Jul 2021 14:51 #216230 by PCW
Are you sure you don't have a watchdog bite? (red LED when LinuxCNC is running)
That would cause inability to control the outputs

If you don't have a watchdog bite and jogging both directions does not change the DIR pins, that suggests that the 5V powered buffer chips have been damaged somehow
(perhaps a spike in the 5V supply)

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

Moderators: PCWjmelson
Time to create page: 0.115 seconds
Powered by Kunena Forum