PNCCONF for custom BitFile?

More
26 Aug 2020 02:28 #179482 by jhandel
I built a custom 7i76e bitfile to add a few more step generators (from a 5 axis bob) and a bunch more encoders (from a 7i89)... How would I get that bitfile to be "visible" by Pncconf? I saw the folders under /lib/hm2/ and added a folder for my custom 7i76e bitfile and copied the file into it... But Pncconf blows up when I try to use it... Is there another build asset I need to include or a process to build a config file for it?

thanks

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

More
26 Aug 2020 05:08 #179494 by cmorley
Replied by cmorley on topic PNCCONF for custom BitFile?
What version of linuxcnc are you using?

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

More
26 Aug 2020 13:02 #179536 by jhandel
Replied by jhandel on topic PNCCONF for custom BitFile?
I am running 2.8, here are a few more bits of info..

1) Here is my PIN file (attached & added .txt to allow uploading)
2) Here is a screenshot of the error (attached)
3) Here is the /lib/hm2/7i76e-custom folder details
cnc@cnc:~$ ls -l /lib/firmware/hm2/7i76e-Custom/
total 456
-rwxrwxrwx 1 root root 464581 Aug 25 21:00 7i76_5ABOB_7i89.bit
4) what LinuxCNC sees in "Show Hal Configuration" if I use the default 7i76e-internalData config (attached)
-- Specifically it doesn't show the 6th StepDirection generator or the 8 other encoders (from the 7i89 card)

5) Mesaflash --readhmid output
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA7I76
  FPGA Size: 16 KGates
  FPGA Pins: 256
  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: StepGen
  There are 6 of StepGen in configuration
  Version: 2
  Registers: 10
  BaseAddress: 2000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCount
  There are 10 of MuxedQCount in configuration
  Version: 4
  Registers: 5
  BaseAddress: 3600
  ClockFrequency: 100.000 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: 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: 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 on-card
Pin#  I/O   Pri. func    Sec. func       Chan      Pin func        Pin Dir

 1      0   IOPort       StepGen          0        Dir/Table2      (Out)
14      1   IOPort       StepGen          0        Step/Table1     (Out)
 2      2   IOPort       StepGen          1        Dir/Table2      (Out)
15      3   IOPort       StepGen          1        Step/Table1     (Out)
 3      4   IOPort       StepGen          2        Dir/Table2      (Out)
16      5   IOPort       StepGen          2        Step/Table1     (Out)
 4      6   IOPort       StepGen          3        Dir/Table2      (Out)
17      7   IOPort       StepGen          3        Step/Table1     (Out)
 5      8   IOPort       StepGen          4        Dir/Table2      (Out)
 6      9   IOPort       StepGen          4        Step/Table1     (Out)
 7     10   IOPort       SSerial          0        TXData1         (Out)
 8     11   IOPort       SSerial          0        RXData1         (In)
 9     12   IOPort       SSerial          0        TXData2         (Out)
10     13   IOPort       SSerial          0        RXData2         (In)
11     14   IOPort       MuxedQCount      4        MuxQ-IDX        (In)
12     15   IOPort       MuxedQCount      4        MuxQ-B          (In)
13     16   IOPort       MuxedQCount      4        MuxQ-A          (In)

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

 1     17   IOPort       None           
14     18   IOPort       None           
 2     19   IOPort       None           
15     20   IOPort       None           
 3     21   IOPort       None           
16     22   IOPort       StepGen          5        Step/Table1     (Out)
 4     23   IOPort       None           
17     24   IOPort       StepGen          5        Dir/Table2      (Out)
 5     25   IOPort       None           
 6     26   IOPort       None           
 7     27   IOPort       None           
 8     28   IOPort       None           
 9     29   IOPort       None           
10     30   IOPort       None           
11     31   IOPort       None           
12     32   IOPort       None           
13     33   IOPort       None           

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

 1     34   IOPort       MuxedQCount      0        MuxQ-A          (In)
14     35   IOPort       MuxedQCount      0        MuxQ-B          (In)
 2     36   IOPort       MuxedQCount      0        MuxQ-IDX        (In)
15     37   IOPort       MuxedQCount      1        MuxQ-A          (In)
 3     38   IOPort       MuxedQCount      1        MuxQ-B          (In)
16     39   IOPort       MuxedQCount      1        MuxQ-IDX        (In)
 4     40   IOPort       MuxedQCount      2        MuxQ-A          (In)
17     41   IOPort       MuxedQCount      2        MuxQ-B          (In)
 5     42   IOPort       MuxedQCount      2        MuxQ-IDX        (In)
 6     43   IOPort       MuxedQCount      3        MuxQ-A          (In)
 7     44   IOPort       MuxedQCount      3        MuxQ-B          (In)
 8     45   IOPort       MuxedQCount      3        MuxQ-IDX        (In)
 9     46   IOPort       MuxedQCountSel   0        MuxSel0         (Out)
10     47   IOPort       None           
11     48   IOPort       SSerial          0        RXData3         (In)
12     49   IOPort       SSerial          0        TXData3         (Out)
13     50   IOPort       SSerial          0        TXEn3           (Out)


thanks in advance for any advice or direction
Josh
Attachments:

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

More
27 Aug 2020 00:49 #179614 by jhandel
Replied by jhandel on topic PNCCONF for custom BitFile?
I think I asked the wrong question (that is, it's a symptom not the problem) I have asked maybe a better/more accurate question on thread : forum.linuxcnc.org/27-driver-boards/3986...tep-generator#179613

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

More
27 Aug 2020 02:53 - 27 Aug 2020 02:58 #179633 by cmorley
Replied by cmorley on topic PNCCONF for custom BitFile?
Try this:
open a terminal.
load pncconf with this command:
pncconf -d debug

click the help button.
click the 'input' tab
paste the readhmid output into the input page.

Continue using pncconf until you get to the mesa page.
under the board name select discovery.
then click discover board button

In the dialog set the card name as 7i76e
check the 'read hostmot2 PIN file' checkbox
press ok.

pncconf will complain about the board details.
set the connects to 3 in the dialog.

If all goes well pncconf should have now set the mesa page properly for the custom firmware.

Chris
Last edit: 27 Aug 2020 02:58 by cmorley.

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

More
27 Aug 2020 12:55 #179684 by jhandel
Replied by jhandel on topic PNCCONF for custom BitFile?
Chris, thanks! When I did that at first I wasn't getting the discovery option... but I see the option when check "Show Advanced Option Pages"

but yah this is doing what I need (I think)

So super thank you.

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

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