5i24-16 + 7i52S + 7i44

More
13 Jun 2021 09:18 #211926 by highbiker
Hi,
before I order mesa cards, I would like to ask whether my setup is ok.

I have 4 stepper-motors, 4 RS-422 Encoder and a smart serial device. So I would like to buy:

1x 5i24-16
1x 5i72s (for 4 Stepper and 4 RS-422 Encoder)
1x 5i44 (RJ45 Smart Serial Interface)

I also looked into the *.vhd files of the hostmot2 driver and found the
PIN_SVSTSS6_4_8_7I52S_72.vhd (I attached the contents of that file in my post).
From the pinout the cards should fit, but I did not find a corresponding bit file. Did I missed it or do I have to create it by hand or is my setup even not possible?

Greetings

File Attachment:

File Name: PIN_SVST6_...13-2.txt
File Size:11 KB
Attachments:

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

More
13 Jun 2021 13:43 #211935 by PCW
Replied by PCW on topic 5i24-16 + 7i52S + 7i44

File Attachment:

File Name: 5i24_16_sv...52sd.zip
File Size:118 KB


Would be the correct bit file for a 5I24-16, 1x7I52S, 1x7I44
Attachments:
The following user(s) said Thank You: highbiker

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

More
04 Dec 2021 22:55 #228367 by highbiker
Replied by highbiker on topic 5i24-16 + 7i52S + 7i44
Hi,
I have issues with that firmware. I flashed successfully the 5i24_16_svstss6_6_8_7i52sd.bit via newest mesaflash from git:
XXX@YYY:/usr/lib/firmware/hm2/5i24$ sudo mesaflash --device 5i24 --write 5i24_16_svstss6_6_8_7i52sd.bit
[sudo] Passwort für wetzel:
Checking file... OK
  File type: BIT file
Boot sector OK
EEPROM sectors to write: 8, max sectors in area: 16
Erasing EEPROM sectors starting from 0x100000...
  |EEEEEEEE
Programming EEPROM sectors starting from 0x100000...
  |WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
Board configuration updated successfully.
Checking file... OK
  File type: BIT file
Boot sector OK
Verifying EEPROM sectors starting from 0x100000...
  |VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
Board configuration verified successfully.

You must power cycle the hardware or use the --reload command to load a new firmware.
XXX@YYY:/usr/lib/firmware/hm2/5i24$ sudo mesaflash --device 5i24 --reload
Waiting for FPGA configuration...OK

mesaflash --device 5i24 --readhmid seems to be OK too:
XXX@YYY:/usr/lib/firmware/hm2/5i24$ sudo mesaflash --device 5i24 --readhmid
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA5I24
  FPGA Size: 16 KGates
  FPGA Pins: 256
  Number of IO Ports: 3
  Width of one I/O port: 24
  Clock Low frequency: 33.3333 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: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 33.333 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: 33.333 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: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCount
  There are 6 of MuxedQCount in configuration
  Version: 4
  Registers: 5
  BaseAddress: 3600
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCountSel
  There are 1 of MuxedQCountSel in configuration
  Version: 0
  Registers: 0
  BaseAddress: 0000
  ClockFrequency: 33.333 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: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

  Module: StepGen
  There are 6 of StepGen in configuration
  Version: 2
  Registers: 10
  BaseAddress: 2000
  ClockFrequency: 33.333 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: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

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

 1                      0   IOPort       None           
 3                      1   IOPort       MuxedQCount      0        MuxQ-A          (In)
 5                      2   IOPort       MuxedQCount      0        MuxQ-B          (In)
 7                      3   IOPort       MuxedQCount      0        MuxQ-IDX        (In)
 9                      4   IOPort       MuxedQCount      1        MuxQ-A          (In)
11                      5   IOPort       MuxedQCount      1        MuxQ-B          (In)
13                      6   IOPort       MuxedQCount      1        MuxQ-IDX        (In)
15                      7   IOPort       MuxedQCount      2        MuxQ-A          (In)
17                      8   IOPort       MuxedQCount      2        MuxQ-B          (In)
19                      9   IOPort       MuxedQCount      2        MuxQ-IDX        (In)
21                     10   IOPort       MuxedQCountSel   0        MuxSel0         (Out)
23                     11   IOPort       StepGen          5        Step/Table1     (Out)
25                     12   IOPort       StepGen          5        Dir/Table2      (Out)
27                     13   IOPort       StepGen          4        Step/Table1     (Out)
29                     14   IOPort       StepGen          4        Dir/Table2      (Out)
31                     15   IOPort       StepGen          3        Step/Table1     (Out)
33                     16   IOPort       StepGen          3        Dir/Table2      (Out)
35                     17   IOPort       StepGen          2        Step/Table1     (Out)
37                     18   IOPort       StepGen          2        Dir/Table2      (Out)
39                     19   IOPort       StepGen          1        Step/Table1     (Out)
41                     20   IOPort       StepGen          1        Dir/Table2      (Out)
43                     21   IOPort       StepGen          0        Step/Table1     (Out)
45                     22   IOPort       StepGen          0        Dir/Table2      (Out)
47                     23   IOPort       None           

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

 1                     24   IOPort       None           
 3                     25   IOPort       None           
 5                     26   IOPort       None           
 7                     27   IOPort       None           
 9                     28   IOPort       None           
11                     29   IOPort       None           
13                     30   IOPort       None           
15                     31   IOPort       None           
17                     32   IOPort       None           
19                     33   IOPort       None           
21                     34   IOPort       None           
23                     35   IOPort       None           
25                     36   IOPort       None           
27                     37   IOPort       None           
29                     38   IOPort       None           
31                     39   IOPort       None           
33                     40   IOPort       None           
35                     41   IOPort       None           
37                     42   IOPort       None           
39                     43   IOPort       None           
41                     44   IOPort       None           
43                     45   IOPort       None           
45                     46   IOPort       None           
47                     47   IOPort       None           

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

 1                     48   IOPort       SSerial          0        RXData0         (In)
 3                     49   IOPort       SSerial          0        RXData1         (In)
 5                     50   IOPort       SSerial          0        RXData2         (In)
 7                     51   IOPort       SSerial          0        RXData3         (In)
 9                     52   IOPort       SSerial          0        TXData0         (Out)
11                     53   IOPort       SSerial          0        TXEn0           (Out)
13                     54   IOPort       SSerial          0        TXData1         (Out)
15                     55   IOPort       SSerial          0        TXEn1           (Out)
17                     56   IOPort       SSerial          0        TXData2         (Out)
19                     57   IOPort       SSerial          0        TXEn2           (Out)
21                     58   IOPort       SSerial          0        TXData3         (Out)
23                     59   IOPort       SSerial          0        TXEn3           (Out)
25                     60   IOPort       SSerial          0        RXData4         (In)
27                     61   IOPort       SSerial          0        RXData5         (In)
29                     62   IOPort       SSerial          0        RXData6         (In)
31                     63   IOPort       SSerial          0        RXData7         (In)
33                     64   IOPort       SSerial          0        TXData4         (Out)
35                     65   IOPort       SSerial          0        TXEn4           (Out)
37                     66   IOPort       SSerial          0        TXData5         (Out)
39                     67   IOPort       SSerial          0        TXEn5           (Out)
41                     68   IOPort       SSerial          0        TXData6         (Out)
43                     69   IOPort       SSerial          0        TXEn6           (Out)
45                     70   IOPort       SSerial          0        TXData7         (Out)
47                     71   IOPort       SSerial          0        TXEn7           (Out)

But when testing my setup in halrun I got following error:
XXX@YYY:~$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_pci config="num_encoders=3 num_stepgens=4 sserial_port_0=00000000"
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i24 at 0000:04:00.0
hm2/hm2_5i24.0: Low Level init 0.15
hm2/hm2_5i24.0: found duplicate Module Descriptor for Watchdog (inconsistent firmware), not loading driver
hm2/hm2_5i24.0: failed to parse Module Descriptor 1
hm2_5i24.0: board fails HM2 registration
RTAPI_PCI: Unmapped 65536 bytes at 0x7f05919fb000
Driver probe function failed!
hm2_pci: error registering PCI driver
hm2_pci: rtapi_app_main: Operation not permitted (-1)
<stdin>:2: waitpid failed /usr/bin/rtapi_app hm2_pci
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_pci failed, returned -1

Could you please help me to solve the problem? Unfortunately I am at my wits end.

FYI: I attached the 7i52S to P4 and the 7i44 to P2.

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

More
04 Dec 2021 23:52 - 04 Dec 2021 23:52 #228368 by PCW
Replied by PCW on topic 5i24-16 + 7i52S + 7i44
That's a really strange error, considering the pin file does not seem to have any errors
(certainly no duplicated watchdog entry)

The readhmid output also reflects the error (it shows a duplicate watchdog module entry)

I just re-compiled this bit file:

 

File Attachment:

File Name: 5i24_16_svstss.zip
File Size:129 KB


If this fails I will try and debug this further
Attachments:
Last edit: 04 Dec 2021 23:52 by PCW.

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

More
05 Dec 2021 00:38 #228371 by highbiker
Replied by highbiker on topic 5i24-16 + 7i52S + 7i44
Hi, thank you for the quick response!
In principle the second bit file (5i24_16_svstss.zip) is working. The duplicated watchdog error is gone and the hm2_pci is loading successfully in halrun.
But from the readhmid ouput I guess that 5i24_16_svstss.zip is for a 5i24-16 setup without 7i52S and 7i44 and with pwmgens instead of stepgens.
Warning: Spoiler!

 

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

More
05 Dec 2021 01:35 #228373 by PCW
Replied by PCW on topic 5i24-16 + 7i52S + 7i44
Ack sorry that's the last one I did,
Third ones a charm (I hope):

 

File Attachment:

File Name: 5i24_16_sv...2-04.zip
File Size:126 KB
Attachments:

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

More
05 Dec 2021 21:53 - 05 Dec 2021 21:54 #228407 by highbiker
Replied by highbiker on topic 5i24-16 + 7i52S + 7i44
As you said: Third ones a charm. The last bit file is working as intended. Thanks a lot!!
Last edit: 05 Dec 2021 21:54 by highbiker.

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

More
02 Jul 2022 16:50 #246452 by zoni
Replied by zoni on topic 5i24-16 + 7i52S + 7i44
hi have you successfully install 7i52s with 5i24 if yes can you attach you config files

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

More
03 Jul 2022 10:37 #246496 by andypugh
Replied by andypugh on topic 5i24-16 + 7i52S + 7i44
The 7i52S is (as far as I am aware) an entirely passive card. So even users of other cards with the 5u24 might be able to help.

Do you have a specific question? (I am using a 5i24 on my lathe, but with a 7i49 rather than 7i52)

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

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