Mesa 7i96 and LinuxCNC 2.8 PnCConf

More
8 years 3 months ago #113558 by ikkuh
Wow, this gets better and better. Thanks to all who make this possible!

Question:

Using latest 2.8 pncconf and mesaflash I get this message when using autodiscovery on my 7i96:
Code:
PNCconf encountered an error. The following information may be useful in troubleshooting: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/pncconf/pages.py", line 897, in on_mesa0_discovery_clicked self.a.discovery_selection_update(info,0) File "/usr/bin/pncconf", line 2598, in discovery_selection_update driver, boardname, firmname, path = self.parse_discovery(info,boardnum=bdnum) File "/usr/bin/pncconf", line 2563, in parse_discovery SECFNCTN = pin_line[3] IndexError: list index out of range
Code:
ton@Ton-CNC:~$ mesaflash --device 7i96 --readhmid Configuration Name: HOSTMOT2 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: StepGen There are 5 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 1 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: Transformer There are 1 of Transformer 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 P1 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 Transformer 0 Drive (Out) 9 12 IOPort Transformer 0 Ref (Out) 10 13 IOPort Transformer 0 Null3 (Out) 11 14 IOPort Transformer 0 Null4 (Out) 12 15 IOPort Transformer 0 Null5 (Out) 13 16 IOPort Transformer 0 Null6 (Out) IO Connections for TB1 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 RXData1 (In) 11 31 IOPort SSerial 0 TXData1 (Out) 12 32 IOPort SSerial 0 TXEn1 (Out) Segmentation fault

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

More
8 years 3 months ago #113614 by cmorley
Thanks for the print out. I was curious what problems may come up with the autodiscovery option.
I am not familiar with the 7i96 card.
Hmm whats a transformer for?
Segmentation fault is not good either - that is probably what caused the error in pncconf - I'll try to see what can be done about that.

Chris M

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

More
8 years 3 months ago - 8 years 3 months ago #113626 by PCW
You need the latest mesaflash to deal with the 7I96
you might try re-fetching the package

Heres what the current mesaflash prints with a readhmid command:

File Attachment:

File Name: 7i96_2018-07-07.txt
File Size:4.96 KB
Last edit: 8 years 3 months ago by PCW. Reason: old pinout fixed

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

More
8 years 3 months ago - 8 years 3 months ago #113799 by ikkuh

PCW wrote: You need the latest mesaflash to deal with the 7I96

Code:
ton@Ton-CNC:~$ mesaflash Mesaflash version 3.3.0~pre (built on Jun 28 2017 04:21:23 with libpci 3.1.8) Configuration and diagnostic tool for Mesa Electronics PCI(E)/ETH/EPP/USB boards (C) 2013-2015 Michael Geszkiewicz (contact: micges@wp.pl) (C) Mesa Electronics Try 'mesaflash --help' for more information



strange, should be the latest........
Code:
ton@Ton-CNC:~$ which mesaflash /usr/bin/mesaflash ton@Ton-CNC:~$ sudo updatedb [sudo] password for ton: ton@Ton-CNC:~$ locate mesaflash /usr/bin/mesaflash /usr/share/doc/mesaflash /usr/share/doc/mesaflash/changelog.Debian.gz /usr/share/doc/mesaflash/copyright /var/cache/apt/archives/mesaflash_3.3.0~pre0+dfsg-0_i386.deb /var/lib/dpkg/info/mesaflash.list /var/lib/dpkg/info/mesaflash.md5sums
Last edit: 8 years 3 months ago by ikkuh.

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

More
8 years 3 months ago #113802 by PCW
Yeah, that's about a year behind the latest mesaflash changes (in 3.3)

have you tried:
sudo apt-get update && sudo apt-get install mesaflash
The following user(s) said Thank You: ikkuh

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

More
8 years 3 months ago #113806 by ikkuh

PCW wrote: have you tried:
sudo apt-get update && sudo apt-get install mesaflash

Code:
Get:3 http://buildbot.linuxcnc.org wheezy Release.gpg [490 B] Hit http://security.debian.org wheezy/updates/main Translation-en Hit http://security.debian.org wheezy/updates/non-free Translation-en Hit http://software.virtualmin.com virtualmin-universal Release.gpg Get:4 http://buildbot.linuxcnc.org wheezy Release [86.7 kB] Hit http://software.virtualmin.com virtualmin-wheezy Release 59% [Sources 25.5 MB] [Waiting for headers] [4 Release 28.4 kB/86.7 kB 33%] Hit http://software.virtualmin.com virtualmin-universal Release Hit http://software.virtualmin.com virtualmin-wheezy/main i386 Packages Hit http://buildbot.linuxcnc.org wheezy/master-rt Sources Hit http://buildbot.linuxcnc.org wheezy/master-rt i386 Packages Hit http://software.virtualmin.com virtualmin-universal/main i386 Packages Ign http://buildbot.linuxcnc.org wheezy/master-rt Translation-en_US Ign http://buildbot.linuxcnc.org wheezy/master-rt Translation-en Ign http://software.virtualmin.com virtualmin-wheezy/main Translation-en_US Ign http://software.virtualmin.com virtualmin-wheezy/main Translation-en Ign http://software.virtualmin.com virtualmin-universal/main Translation-en_US Ign http://software.virtualmin.com virtualmin-universal/main Translation-en Fetched 141 kB in 7s (19.3 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done mesaflash is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Could it be that I am not getting the latest version because the machine is still configured for
Code:
ton@Ton-CNC:/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc$ uname -a Linux Ton-CNC 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc i686 GNU/Linux
. So I am using the wrong architecture? (which makes sense since this is a working machine with a Chinese parallel port bob. )The new machine is ordered and should be here soon.

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

Moderators: cmorley
Time to create page: 0.173 seconds
Powered by Kunena Forum