5i25 + 7i77 Plug n Go PROBLEM!

More
06 Nov 2015 10:26 #64867 by Sousanator
5i25 + 7i77 Plug n Go PROBLEM! was created by Sousanator
Hey so I'm retrofitting a Cincinatti Lancer 3 axis mill with Linuxcnc using the Mesa 5i25 + 7i77 Plug n Go kit. Problem is I'm very new to Hal and linux in general.

I've set up a Stepper system that I built myself (driver board and mill) and that was extremely easy compared to this!

Basically after a good amount of reading I'm completely lost with my issue. I made a quick configuration using pnconf just to see if Linuxcnc will even boot up and it does not. This is the error log i get:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.6.11
Machine configuration directory is '/home/lancer/linuxcnc/configs/my_LinuxCNC_machine'
Machine configuration file is 'my_LinuxCNC_machine.ini'
INIFILE=/home/lancer/linuxcnc/configs/my_LinuxCNC_machine/my_LinuxCNC_machine.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=1582
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hm2_pci.ko': -1 Invalid parameters
my_LinuxCNC_machine.hal:9: exit value: 1
my_LinuxCNC_machine.hal:9: insmod failed, returned -1
See the output of 'dmesg' for more information.
1582
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 66.483052] I-pipe: Domain RTAI registered.
[ 66.483062] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 66.483066] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 66.483141] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 66.483145] PIPELINE layers:
[ 66.483149] f81ade20 9ac15d93 RTAI 200
[ 66.483153] c085cb20 0 Linux 100
[ 66.512245] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 66.512474] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 66.512483] RTAI[sched]: hard timer type/freq = APIC/12493919(Hz); default timing: periodic; linear timed lists.
[ 66.512488] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2998664000 hz.
[ 66.512492] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 66.514073] RTAI[usi]: enabled.
[ 66.591126] RTAI[math]: loaded.
[ 66.824723] hm2: loading Mesa HostMot2 driver version 0.15
[ 66.836383] hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
[ 66.836448] hm2_pci 0000:03:0b.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[ 66.836454] hm2_pci: discovered 5i25 at 0000:03:0b.0
[ 66.836514] hm2/hm2_5i25.0: invalid cookie, got 0xFFFFFFFF, expected 0x55AACAFE
[ 66.836520] hm2/hm2_5i25.0: FPGA failed to initialize, or unexpected firmware?
[ 66.836526] hm2_5i25.0: board fails HM2 registration
[ 66.836537] hm2_pci 0000:03:0b.0: PCI INT A disabled
[ 66.836548] hm2_pci: probe of 0000:03:0b.0 failed with error -22
[ 67.366022] hm2: unloading
[ 67.522187] RTAI[math]: unloaded.
[ 67.573096] SCHED releases registered named ALIEN RTGLBH
[ 67.605381] RTAI[malloc]: unloaded.
[ 67.704022] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 67.708434] I-pipe: Domain RTAI unregistered.
[ 67.708524] RTAI[hal]: unmounted.


I'm assuming that the line that states there is a bad cookie (got 0xFFFFFFFF expected 0x55AACAFE) means that the firmware is no good. This might make sense seeing as how the red leds on the 5i25 light up from time to time. Never solid for an extended period of time though.

Any help at all would be much appreciated.


TL;DR - I'm new to Hal and I cant get anywhere with my 5i25 + 7i77

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

More
06 Nov 2015 14:15 #64872 by sirop
Replied by sirop on topic 5i25 + 7i77 Plug n Go PROBLEM!
Hi,

my experience with 5i25 firmware is rather modest.

So please answer two questions first:
  1. Did you change the firmware?

  2. If you changed the firmware, what mesaflash version did you use to write to EEPROM?

This thread www.linuxcnc.org/index.php/english/forum...ignment-on-mesa-5i25
may also give you some hints about simple changes of firmware.

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

More
06 Nov 2015 14:26 #64873 by Sousanator
Replied by Sousanator on topic 5i25 + 7i77 Plug n Go PROBLEM!
No I didn't change the firmware. I just tried it in another PC and it seems to be recognized, but now I'm getting this error:

Debug file information:
./7i77_test.hal:55: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0-scalemax' not found
3744
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Any idea what thats about?

I think it didn't work in the last computer due to it being a really old system?

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

More
06 Nov 2015 14:41 #64874 by sirop
Replied by sirop on topic 5i25 + 7i77 Plug n Go PROBLEM!

No I didn't change the firmware. I just tried it in another PC and it seems to be recognized, but now I'm getting this error:

Debug file information:
./7i77_test.hal:55: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0-scalemax' not found
3744
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Any idea what thats about?

I think it didn't work in the last computer due to it being a really old system?


So please do:
more 7i77_test.hal

Then:
halrun

and type in each line from 7i77_test.hal .
The first two lines would be probably:
loadrt hostmot2
loadrt hm2_pci

Then you can do one of these:
show pin
show param
in order to figure out why " parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0-scalemax' not found "

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

More
06 Nov 2015 18:13 #64879 by cncbasher
Replied by cncbasher on topic 5i25 + 7i77 Plug n Go PROBLEM!
to make life easier post your config files as an archive to this post ,

their have been minor changes to some names , so it would depend on how you obtained the config , from an existing setup or from pncconf
do you know which firmware was requested for the 5i25 ?, you may have a requirement to upgrade , this will show as a popup

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

More
06 Nov 2015 19:15 - 06 Nov 2015 19:15 #64884 by andypugh
Replied by andypugh on topic 5i25 + 7i77 Plug n Go PROBLEM!

./7i77_test.hal:55: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0-scalemax' not found


This could be due to not having Field Power to the 7i77. The smart-serial controlled pins won't work without that. (the smart-serial cpu derives power from field-power)
Last edit: 06 Nov 2015 19:15 by andypugh.

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

More
07 Nov 2015 00:51 #64920 by PCW
Replied by PCW on topic 5i25 + 7i77 Plug n Go PROBLEM!
The 7I77 analog section is powered by 5V (Either from the 5I25 or from an external source)
so failure to find analog pins is usually a 5V problem either on the 5I25 or the 7I77

So for testing if you want to use cable power you jumper the cards like this:

5I25 W2 UP
7I77 W5 LEFT

If you will use an external 5V supply for the 7I77 the jumpers need to be set like this

5I25 W2 DOWN
7I77 W5 RIGHT
External 5V to 7I77 TB1

Digital I/O requires 8-32V field power

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

More
07 Nov 2015 01:20 #64924 by Sousanator
Replied by Sousanator on topic 5i25 + 7i77 Plug n Go PROBLEM!
The 7i77 has 5V logic power from the host card, I have tested. It also has 24v field Power. CR15 and CR16 are both illuminated. Here is my configuration (which was created from scratch with PNConf):
Attachments:

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

More
07 Nov 2015 07:48 - 07 Nov 2015 07:56 #64936 by PCW
Replied by PCW on topic 5i25 + 7i77 Plug n Go PROBLEM!
Is the 7I77 plugged into P3? (the external DB25F connector on the 5I25)

Another possibility is wrong firmware

Plug&Go kits are supposed to have the right firmware loaded in the FPGA card but sometimes mistakes are made...

Best way to check is run:

sudo mesaflash --device 5i25 --readhmid > pins.txt

and post pins.txt here

if you dont have mesaflash you can install it by:

sudo apt-get update
sudo apt-get install mesaflash


BTW 5I25 cards not working in an older PCs is very often because of dirty PCI slot contacts
you can often fix these by multiple insertions,removals of some card stock soaked in
isopropyl alcohol in the PCI slot

The 5I25 will not work on REALLY ancient (486, Pentium 100) PCs because they have no 3.3V power
routed to the PCI slots
Last edit: 07 Nov 2015 07:56 by PCW.

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

More
07 Nov 2015 07:58 #64938 by Sousanator
Replied by Sousanator on topic 5i25 + 7i77 Plug n Go PROBLEM!
Yes the 7i77 is plugged into P3. Attached is the pins.txt file. Thanks
Attachments:

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

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