Re: [Emc-users] Now do I have a bad card?

2020-10-22 Thread Mark Wendt
>
> My next attempt seems to have arrived at a usable config although neither
> the spindle nor axisA is wired up ATM.  But I am getting the desired
> signals to make it work from the stepgen 3 terminals on tb2, getting the
> complements pairs out on the 4 terminals labeled as stepgen 3.
>
> I will need to go thru the hal file, removing whats no longer used, but I
> need to make up an interface for the olimex card next, which needs 8
> signals, 3 from liuxcnc, pdm and dir+, dir-, which I now have and can
> actually see with a halmeter.  The spindles pdm is on the 2nd pwmgen
> with the pwd from the bob. And I need to hook the spindle dir back up
> on stepgen#3 and the A dirs to the olimex stamp on the other stepgen#3
> pins on the 7i76D.
>
> I think that might be Progress!  Spose?  Time to rest my back.  Getting
> old is unavoidable unless you die Junge. Considering the alternative, I
> rather like it. ;p)
>
> This olimex card has so low an R for the on gates that it doesn't even
> come with a heat sink for a 30 amp rated load, the whole card is about
> the size of an airmail stamp. If I think it needs cooling, I'll mount it
> in the psu's exhaust port air stream.  Or I've some bigger heat sink
> stock.
>
> Thank you Peter.
>
> Cheers, Gene Heskett
>

Any chance we could trim these posts?  This one had a comet tail about a
mile and a half long.  Makes for really difficult reading when it takes a
while to either find where the comments are or scroll only to the bottom to
find a paragraph or two.

Thanks,
Mark

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Now do I have a bad card?

2020-10-22 Thread Gene Heskett
On Thursday 22 October 2020 11:07:19 Gene Heskett wrote:

> On Thursday 22 October 2020 09:39:35 Peter C. Wallace wrote:
> > On Thu, 22 Oct 2020, Gene Heskett wrote:
> > > Date: Thu, 22 Oct 2020 04:41:19 -0400
> > > From: Gene Heskett 
> > > Reply-To: "Enhanced Machine Controller (EMC)"
> > > 
> > > To: emc-users@lists.sourceforge.net
> > > Subject: Re: [Emc-users] Now do I have a bad card?
> > >
> > > On Wednesday 21 October 2020 23:05:16 Peter C. Wallace wrote:
> > >> On Wed, 21 Oct 2020, Gene Heskett wrote:
> > >>> Date: Wed, 21 Oct 2020 21:06:06 -0400
> > >>> From: Gene Heskett 
> > >>> Reply-To: "Enhanced Machine Controller (EMC)"
> > >>> 
> > >>> To: emc-users@lists.sourceforge.net
> > >>> Subject: Re: [Emc-users] Now do I have a bad card?
> > >>>
> > >>> On Wednesday 21 October 2020 20:21:30 Peter C. Wallace wrote:
> > >>> [...]
> > >>>
> > >>>>>>>>>> sudo mesaflash --device 5i25 --readhmid
> > >>>>>>>>>
> > >>>>>>>>> gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25
> > >>>>>>>>> --readhmid [sudo] password for gene:
> > >>>>>>>>> Configuration Name: HOSTMOT2
> > >>>>>>>>>
> > >>>>>>>>> General configuration information:
> > >>>>>>>>>
> > >>>>>>>>>  BoardName : MESA5I25
> > >>>>>>>>>  FPGA Size: 9 KGates
> > >>>>>>>>>  FPGA Pins: 144
> > >>>>>>>>>  Number of IO Ports: 2
> > >>>>>>>>>  Width of one I/O port: 17
> > >>>>>>>>>  Clock Low frequency: 33. MHz
> > >>>>>>>>>  Clock High frequency: 200. 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: IOPort
> > >>>>>>>>>  There are 2 of IOPort in configuration
> > >>>>>>>>>  Version: 0
> > >>>>>>>>>  Registers: 5
> > >>>>>>>>>  BaseAddress: 1000
> > >>>>>>>>>  ClockFrequency: 33.333 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: 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
> > >>>>>>>>

Re: [Emc-users] Now do I have a bad card?

2020-10-22 Thread Gene Heskett
On Thursday 22 October 2020 09:39:35 Peter C. Wallace wrote:

> On Thu, 22 Oct 2020, Gene Heskett wrote:
> > Date: Thu, 22 Oct 2020 04:41:19 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Now do I have a bad card?
> >
> > On Wednesday 21 October 2020 23:05:16 Peter C. Wallace wrote:
> >> On Wed, 21 Oct 2020, Gene Heskett wrote:
> >>> Date: Wed, 21 Oct 2020 21:06:06 -0400
> >>> From: Gene Heskett 
> >>> Reply-To: "Enhanced Machine Controller (EMC)"
> >>> 
> >>> To: emc-users@lists.sourceforge.net
> >>> Subject: Re: [Emc-users] Now do I have a bad card?
> >>>
> >>> On Wednesday 21 October 2020 20:21:30 Peter C. Wallace wrote:
> >>> [...]
> >>>
> >>>>>>>>>> sudo mesaflash --device 5i25 --readhmid
> >>>>>>>>>
> >>>>>>>>> gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25
> >>>>>>>>> --readhmid [sudo] password for gene:
> >>>>>>>>> Configuration Name: HOSTMOT2
> >>>>>>>>>
> >>>>>>>>> General configuration information:
> >>>>>>>>>
> >>>>>>>>>  BoardName : MESA5I25
> >>>>>>>>>  FPGA Size: 9 KGates
> >>>>>>>>>  FPGA Pins: 144
> >>>>>>>>>  Number of IO Ports: 2
> >>>>>>>>>  Width of one I/O port: 17
> >>>>>>>>>  Clock Low frequency: 33. MHz
> >>>>>>>>>  Clock High frequency: 200. 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: IOPort
> >>>>>>>>>  There are 2 of IOPort in configuration
> >>>>>>>>>  Version: 0
> >>>>>>>>>  Registers: 5
> >>>>>>>>>  BaseAddress: 1000
> >>>>>>>>>  ClockFrequency: 33.333 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: 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: PWM
> >>>>>>>>>  There are 2 of PWM in configuration
> >>>>>>>>>  Version: 0
> >>>>>>>>>  Registers: 5
> >>>&g

Re: [Emc-users] Now do I have a bad card?

2020-10-22 Thread Peter C. Wallace

On Thu, 22 Oct 2020, Gene Heskett wrote:


Date: Thu, 22 Oct 2020 04:41:19 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 23:05:16 Peter C. Wallace wrote:


On Wed, 21 Oct 2020, Gene Heskett wrote:

Date: Wed, 21 Oct 2020 21:06:06 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 20:21:30 Peter C. Wallace wrote:
[...]


sudo mesaflash --device 5i25 --readhmid


gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
[sudo] password for gene:
Configuration Name: HOSTMOT2

General configuration information:

 BoardName : MESA5I25
 FPGA Size: 9 KGates
 FPGA Pins: 144
 Number of IO Ports: 2
 Width of one I/O port: 17
 Clock Low frequency: 33. MHz
 Clock High frequency: 200. 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: IOPort
 There are 2 of IOPort in configuration
 Version: 0
 Registers: 5
 BaseAddress: 1000
 ClockFrequency: 33.333 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: 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: PWM
 There are 2 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 9 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 P3
Pin#  I/O   Pri. funcSec. func   Chan  Pin func
Pin Dir

1  0   IOPort   StepGen  0Dir/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   QCount 0
Quad-IDX(In) 12 15   IOPort   QCount 0
Quad-B (In) 13 16   IOPort   QCount 0Quad-A
(In)

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

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

gene@GO704:~/linuxcnc$


Yep that looks like a 7I76+7I78 configuration
with just one PWMGen for the 7I78 on P2


but this is the load line that generated that dmesg:
loadrt hm2_pci  config="num_encoders=2 num_pwmgens=2
num_stepgens=3"


Thats a pinout file not a dmesg log


Its the output of the --readhmid command you asked for. I just
copy pasted it all, including the mesaflash 

Re: [Emc-users] Now do I have a bad card?

2020-10-22 Thread Gene Heskett
On Wednesday 21 October 2020 23:05:16 Peter C. Wallace wrote:

> On Wed, 21 Oct 2020, Gene Heskett wrote:
> > Date: Wed, 21 Oct 2020 21:06:06 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Now do I have a bad card?
> >
> > On Wednesday 21 October 2020 20:21:30 Peter C. Wallace wrote:
> > [...]
> >
> >>>>>>>> sudo mesaflash --device 5i25 --readhmid
> >>>>>>>
> >>>>>>> gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
> >>>>>>> [sudo] password for gene:
> >>>>>>> Configuration Name: HOSTMOT2
> >>>>>>>
> >>>>>>> General configuration information:
> >>>>>>>
> >>>>>>>  BoardName : MESA5I25
> >>>>>>>  FPGA Size: 9 KGates
> >>>>>>>  FPGA Pins: 144
> >>>>>>>  Number of IO Ports: 2
> >>>>>>>  Width of one I/O port: 17
> >>>>>>>  Clock Low frequency: 33. MHz
> >>>>>>>  Clock High frequency: 200. 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: IOPort
> >>>>>>>  There are 2 of IOPort in configuration
> >>>>>>>  Version: 0
> >>>>>>>  Registers: 5
> >>>>>>>  BaseAddress: 1000
> >>>>>>>  ClockFrequency: 33.333 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: 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: PWM
> >>>>>>>  There are 2 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 9 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
> >>

Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Peter C. Wallace

On Wed, 21 Oct 2020, Gene Heskett wrote:


Date: Wed, 21 Oct 2020 21:06:06 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 20:21:30 Peter C. Wallace wrote:
[...]

sudo mesaflash --device 5i25 --readhmid


gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
[sudo] password for gene:
Configuration Name: HOSTMOT2

General configuration information:

 BoardName : MESA5I25
 FPGA Size: 9 KGates
 FPGA Pins: 144
 Number of IO Ports: 2
 Width of one I/O port: 17
 Clock Low frequency: 33. MHz
 Clock High frequency: 200. 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: IOPort
 There are 2 of IOPort in configuration
 Version: 0
 Registers: 5
 BaseAddress: 1000
 ClockFrequency: 33.333 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: 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: PWM
 There are 2 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 9 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 P3
Pin#  I/O   Pri. funcSec. func   Chan  Pin func
Pin Dir

1  0   IOPort   StepGen  0Dir/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   QCount 0
Quad-IDX(In) 12 15   IOPort   QCount 0
Quad-B (In) 13 16   IOPort   QCount 0Quad-A (In)

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

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

gene@GO704:~/linuxcnc$



Yep that looks like a 7I76+7I78 configuration
with just one PWMGen for the 7I78 on P2


but this is the load line that generated that dmesg:
loadrt hm2_pci  config="num_encoders=2 num_pwmgens=2
num_stepgens=3"


Thats a pinout file not a dmesg log


Its the output of the --readhmid command you asked for. I just copy
pasted it all, including the mesaflash command you can see at the
top of the paste.

the dmesg file shows the 2nd pwmgen, but the dir signal is
permanently grounded.


Thats with the original 5i25_7i76_1px2d.bit file installed.


Um no, there is only PWM 0 brought out
What pin is grounded?


P2-05. With either bitfile installed, 3 5i25's teste

Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Gene Heskett
On Wednesday 21 October 2020 20:21:30 Peter C. Wallace wrote:
[...]
> >> sudo mesaflash --device 5i25 --readhmid
> >
> > gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
> > [sudo] password for gene:
> > Configuration Name: HOSTMOT2
> >
> > General configuration information:
> >
> >  BoardName : MESA5I25
> >  FPGA Size: 9 KGates
> >  FPGA Pins: 144
> >  Number of IO Ports: 2
> >  Width of one I/O port: 17
> >  Clock Low frequency: 33. MHz
> >  Clock High frequency: 200. 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: IOPort
> >  There are 2 of IOPort in configuration
> >  Version: 0
> >  Registers: 5
> >  BaseAddress: 1000
> >  ClockFrequency: 33.333 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: 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: PWM
> >  There are 2 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 9 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 P3
> > Pin#  I/O   Pri. funcSec. func   Chan  Pin func
> > Pin Dir
> >
> > 1  0   IOPort   StepGen  0Dir/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   QCount 0   
> > Quad-IDX(In) 12 15   IOPort   QCount 0   
> > Quad-B (In) 13 16   IOPort   QCount 0Quad-A (In)
> >
> > IO Connections for P2
> > Pin#  I/O   Pri. funcSec. func   Chan  Pin func
> > Pin Dir
> >
> > 1 17   IOPort   StepGen  5Dir/Table2
> > (Out) 14 18   IOPort   StepGen  5
> > Step/Table1 (Out) 2 19   IOPort   StepGen  6
> > Dir/Table2  (Out) 15 20   IOPort   StepGen 
> > 6 Step/Table1 (Out) 3 21   IOPort   StepGen 7
> > Dir/Table2  (Out) 16 22   IOPort   StepGen 7
> > Step/Table1 (Out) 4 23   IOPort   StepGen 8
> > Dir/Table2  (Out) 17 24   IOPort   StepGen 8
> > Step/Table1 (Out) 5 25   IOPort   PWM 0PWM
> > (Out) 6 26   IOPort PWM  0/Enable (Out)
> > 7 27   IOPort PWM  0Dir (Out) 8 28  
> > IOPort SSerial  0TXData3 (Out) 9 29 IOPort  
> > SSerial  0TXEn3 (Out) 10 30   IOPort  
> > SSerial  0
> > RXData3 (In) 11 31   IOPort   QCount   1
> >  Quad-IDX(In) 

Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Peter C. Wallace

On Wed, 21 Oct 2020, Gene Heskett wrote:


Date: Wed, 21 Oct 2020 19:45:56 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 19:20:46 Peter C. Wallace wrote:


On Wed, 21 Oct 2020, Gene Heskett wrote:

Date: Wed, 21 Oct 2020 18:55:40 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 17:36:10 Peter C. Wallace wrote:

On Wed, 21 Oct 2020, Gene Heskett wrote:

Date: Wed, 21 Oct 2020 17:09:37 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 16:15:40 Peter C. Wallace wrote:

sudo mesaflash --device 5i25 --readhmid


gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
[sudo] password for gene:
Configuration Name: HOSTMOT2

General configuration information:

 BoardName : MESA5I25
 FPGA Size: 9 KGates
 FPGA Pins: 144
 Number of IO Ports: 2
 Width of one I/O port: 17
 Clock Low frequency: 33. MHz
 Clock High frequency: 200. 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: IOPort
 There are 2 of IOPort in configuration
 Version: 0
 Registers: 5
 BaseAddress: 1000
 ClockFrequency: 33.333 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: 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: PWM
 There are 2 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 9 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 P3
Pin#  I/O   Pri. funcSec. func   Chan  Pin func
Pin Dir

1  0   IOPort   StepGen  0Dir/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   QCount
0Quad-IDX(In) 12 15   IOPort   QCount
 0Quad-B (In) 13 16   IOPort   QCount
 0Quad-A (In)

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

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

Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Gene Heskett
On Wednesday 21 October 2020 19:20:46 Peter C. Wallace wrote:

> On Wed, 21 Oct 2020, Gene Heskett wrote:
> > Date: Wed, 21 Oct 2020 18:55:40 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Now do I have a bad card?
> >
> > On Wednesday 21 October 2020 17:36:10 Peter C. Wallace wrote:
> >> On Wed, 21 Oct 2020, Gene Heskett wrote:
> >>> Date: Wed, 21 Oct 2020 17:09:37 -0400
> >>> From: Gene Heskett 
> >>> Reply-To: "Enhanced Machine Controller (EMC)"
> >>> 
> >>> To: emc-users@lists.sourceforge.net
> >>> Subject: Re: [Emc-users] Now do I have a bad card?
> >>>
> >>> On Wednesday 21 October 2020 16:15:40 Peter C. Wallace wrote:
> >>>> sudo mesaflash --device 5i25 --readhmid
> >>>
> >>> gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
> >>> [sudo] password for gene:
> >>> Configuration Name: HOSTMOT2
> >>>
> >>> General configuration information:
> >>>
> >>>  BoardName : MESA5I25
> >>>  FPGA Size: 9 KGates
> >>>  FPGA Pins: 144
> >>>  Number of IO Ports: 2
> >>>  Width of one I/O port: 17
> >>>  Clock Low frequency: 33. MHz
> >>>  Clock High frequency: 200. 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: IOPort
> >>>  There are 2 of IOPort in configuration
> >>>  Version: 0
> >>>  Registers: 5
> >>>  BaseAddress: 1000
> >>>  ClockFrequency: 33.333 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: 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: PWM
> >>>  There are 2 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 9 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 P3
> >>> Pin#  I/O   Pri. funcSec. func   Chan  Pin func
> >>> Pin Dir
> >>>
> >>> 1  0   IOPort   StepGen  0Dir/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/Table

Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Peter C. Wallace

On Wed, 21 Oct 2020, Gene Heskett wrote:


Date: Wed, 21 Oct 2020 18:55:40 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 17:36:10 Peter C. Wallace wrote:


On Wed, 21 Oct 2020, Gene Heskett wrote:

Date: Wed, 21 Oct 2020 17:09:37 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 16:15:40 Peter C. Wallace wrote:

sudo mesaflash --device 5i25 --readhmid


gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
[sudo] password for gene:
Configuration Name: HOSTMOT2

General configuration information:

 BoardName : MESA5I25
 FPGA Size: 9 KGates
 FPGA Pins: 144
 Number of IO Ports: 2
 Width of one I/O port: 17
 Clock Low frequency: 33. MHz
 Clock High frequency: 200. 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: IOPort
 There are 2 of IOPort in configuration
 Version: 0
 Registers: 5
 BaseAddress: 1000
 ClockFrequency: 33.333 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: 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: PWM
 There are 2 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 9 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 P3
Pin#  I/O   Pri. funcSec. func   Chan  Pin func
Pin Dir

1  0   IOPort   StepGen  0Dir/Table2
(Out) 14  1   IOPort   StepGen  0Step/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
  2Step/Table1 (Out) 4  6   IOPort   StepGen
 3Dir/Table2  (Out) 17  7   IOPort   StepGen
 3Step/Table1 (Out) 5  8   IOPort
StepGen  4Dir/Table2  (Out) 6  9   IOPort
   StepGen  4Step/Table1 (Out) 7 10   IOPort
  SSerial  0TXData1 (Out) 8 11
IOPort   SSerial  0RXData1 (In) 9 12
  IOPort   SSerial  0TXData2 (Out) 10
 13   IOPort   SSerial  0RXData2 (In) 11
14   IOPort   QCount   0Quad-IDX(In)
12 15   IOPort   QCount   0Quad-B
(In) 13 16   IOPort   QCount   0Quad-A
   (In)

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

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

gene@GO704:~/lin

Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Gene Heskett
On Wednesday 21 October 2020 17:36:10 Peter C. Wallace wrote:

> On Wed, 21 Oct 2020, Gene Heskett wrote:
> > Date: Wed, 21 Oct 2020 17:09:37 -0400
> > From: Gene Heskett 
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > 
> > To: emc-users@lists.sourceforge.net
> > Subject: Re: [Emc-users] Now do I have a bad card?
> >
> > On Wednesday 21 October 2020 16:15:40 Peter C. Wallace wrote:
> >> sudo mesaflash --device 5i25 --readhmid
> >
> > gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
> > [sudo] password for gene:
> > Configuration Name: HOSTMOT2
> >
> > General configuration information:
> >
> >  BoardName : MESA5I25
> >  FPGA Size: 9 KGates
> >  FPGA Pins: 144
> >  Number of IO Ports: 2
> >  Width of one I/O port: 17
> >  Clock Low frequency: 33. MHz
> >  Clock High frequency: 200. 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: IOPort
> >  There are 2 of IOPort in configuration
> >  Version: 0
> >  Registers: 5
> >  BaseAddress: 1000
> >  ClockFrequency: 33.333 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: 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: PWM
> >  There are 2 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 9 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 P3
> > Pin#  I/O   Pri. funcSec. func   Chan  Pin func   
> > Pin Dir
> >
> > 1  0   IOPort   StepGen  0Dir/Table2 
> > (Out) 14  1   IOPort   StepGen  0Step/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   
> >   2Step/Table1 (Out) 4  6   IOPort   StepGen
> >  3Dir/Table2  (Out) 17  7   IOPort   StepGen
> >  3Step/Table1 (Out) 5  8   IOPort  
> > StepGen  4Dir/Table2  (Out) 6  9   IOPort   
> >StepGen  4Step/Table1 (Out) 7 10   IOPort
> >   SSerial  0TXData1 (Out) 8 11  
> > IOPort   SSerial  0RXData1 (In) 9 12
> >   IOPort   SSerial  0TXData2 (Out) 10   
> >  13   IOPort   SSerial  0RXData2 (In) 11
> > 14   IOPort   QCount   0Quad-IDX(In)
> > 12 15   IOPort   QCount   0Quad-B 
> > (In) 13 16   IOPort   QCount   0Quad-A  
> >(In)
> >
> > IO Connections for P2
> > Pin#  I/O   Pri. funcSec. func   Chan  Pin func   
> > Pin Dir
> >
> > 1 17   IOPort   StepGen  5Dir/Table2 
> > (Out) 14 18   IOPort   StepGen  5St

Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Peter C. Wallace

On Wed, 21 Oct 2020, Gene Heskett wrote:


Date: Wed, 21 Oct 2020 17:09:37 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Now do I have a bad card?

On Wednesday 21 October 2020 16:15:40 Peter C. Wallace wrote:


sudo mesaflash --device 5i25 --readhmid

gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
[sudo] password for gene:
Configuration Name: HOSTMOT2

General configuration information:

 BoardName : MESA5I25
 FPGA Size: 9 KGates
 FPGA Pins: 144
 Number of IO Ports: 2
 Width of one I/O port: 17
 Clock Low frequency: 33. MHz
 Clock High frequency: 200. 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: IOPort
 There are 2 of IOPort in configuration
 Version: 0
 Registers: 5
 BaseAddress: 1000
 ClockFrequency: 33.333 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: 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: PWM
 There are 2 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 9 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 P3
Pin#  I/O   Pri. funcSec. func   Chan  Pin funcPin
Dir

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

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

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

gene@GO704:~/linuxcnc$

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire

Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Gene Heskett
On Wednesday 21 October 2020 16:15:40 Peter C. Wallace wrote:

> sudo mesaflash --device 5i25 --readhmid
gene@GO704:~/linuxcnc$ sudo mesaflash --device 5i25 --readhmid
[sudo] password for gene:
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA5I25
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 2
  Width of one I/O port: 17
  Clock Low frequency: 33. MHz
  Clock High frequency: 200. 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: IOPort
  There are 2 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 33.333 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: 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: PWM
  There are 2 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 9 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 P3
Pin#  I/O   Pri. funcSec. func   Chan  Pin funcPin 
Dir

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

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

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

gene@GO704:~/linuxcnc$  

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: [Emc-users] Now do I have a bad card?

2020-10-21 Thread Peter C. Wallace

On Wed, 21 Oct 2020, Gene Heskett wrote:


Date: Wed, 21 Oct 2020 16:08:37 -0400
From: Gene Heskett 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: [Emc-users] Now do I have a bad card?

Greetings all;

I have re-written and reloaded the 5i25_7i76_7i78.bit file and verified
it ok. And I've done a --reload. No powerdown yet.

But despite the pin file proclaiming it has two pwmgens, dmesg says only
one reports in at roll call. Its feeding p2, as pwmgen.00 in place of
pwmgewn.01  With 4 gpio pins on p3 in place the the unspecified stepgens
3 and 4.

Houston, we have a problem.  Bad card?, bad 5i26_7i76_7i78.bit file?.
--verify says its a good write.


What does

sudo mesaflash --device 5i25 --readhmid

report?





Thanks.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Now do I have a bad card?

2020-10-21 Thread Gene Heskett
Greetings all;

I have re-written and reloaded the 5i25_7i76_7i78.bit file and verified 
it ok. And I've done a --reload. No powerdown yet.

But despite the pin file proclaiming it has two pwmgens, dmesg says only 
one reports in at roll call. Its feeding p2, as pwmgen.00 in place of 
pwmgewn.01  With 4 gpio pins on p3 in place the the unspecified stepgens 
3 and 4.

Houston, we have a problem.  Bad card?, bad 5i26_7i76_7i78.bit file?.
--verify says its a good write.

Thanks.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users