7I90HD via EPP parallel port
- phillc54
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
27 Feb 2017 00:06 #88647
by phillc54
7I90HD via EPP parallel port was created by phillc54
I have a 7I90HD and am trying to connect it to a EPP parallel port.
phill@jessie-64:~$ lspci -vv
shows the following:
after:
phill@jessie-64:~$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd:
I try:
halcmd: loadrt hm2_7i90 ioaddr=0xdc00 config="num_encoders=-1 num_stepgens=-1"
which gives:
I then try:
halcmd: loadrt hm2_7i90 ioaddr=0xd880 config="num_encoders=-1 num_stepgens=-1"
which gives:
These show slightly different errors from rtapi_app_main but both fail.
Can anyone shed any light on this for me.
Cheers, Phill.
phill@jessie-64:~$ lspci -vv
shows the following:
Warning: Spoiler!
01:00.0 Parallel controller: MosChip Semiconductor Technology Ltd. Device 9900 (prog-if 03 [IEEE1284])
Subsystem: Device a000:2000
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at dc00
Region 1: I/O ports at d880
Region 2: Memory at feaff000 (32-bit, non-prefetchable) [size=4K]
Region 5: Memory at feafe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Subsystem: Device a000:2000
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at dc00
Region 1: I/O ports at d880
Region 2: Memory at feaff000 (32-bit, non-prefetchable) [size=4K]
Region 5: Memory at feafe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
after:
phill@jessie-64:~$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd:
I try:
halcmd: loadrt hm2_7i90 ioaddr=0xdc00 config="num_encoders=-1 num_stepgens=-1"
which gives:
Warning: Spoiler!
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
Linux parallel port @56320 not found
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2_7i90.0: EPP timeout on data cycle of read(addr=0x0100, size=4)
hm2/hm2_7i90.0: error reading hm2 cookie
hm2_7i90.0: board at (ioaddr=0xDC00, ioaddr_hi=0x0000, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Input/output error (-5)
<stdin>:13: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:13: /usr/bin/rtapi_app exited without becoming ready
<stdin>:13: insmod for hm2_7i90 failed, returned -1
Linux parallel port @56320 not found
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2_7i90.0: EPP timeout on data cycle of read(addr=0x0100, size=4)
hm2/hm2_7i90.0: error reading hm2 cookie
hm2_7i90.0: board at (ioaddr=0xDC00, ioaddr_hi=0x0000, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Input/output error (-5)
<stdin>:13: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:13: /usr/bin/rtapi_app exited without becoming ready
<stdin>:13: insmod for hm2_7i90 failed, returned -1
I then try:
halcmd: loadrt hm2_7i90 ioaddr=0xd880 config="num_encoders=-1 num_stepgens=-1"
which gives:
Warning: Spoiler!
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
Linux parallel port @55424 not found
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: invalid cookie, got 0x10000000, expected 0x55AACAFE
hm2/hm2_7i90.0: FPGA failed to initialize, or unexpected firmware?
hm2_7i90.0: board at (ioaddr=0xD880, ioaddr_hi=0x0000, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Invalid argument (-22)
<stdin>:17: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:17: /usr/bin/rtapi_app exited without becoming ready
<stdin>:17: insmod for hm2_7i90 failed, returned -1
Linux parallel port @55424 not found
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: invalid cookie, got 0x10000000, expected 0x55AACAFE
hm2/hm2_7i90.0: FPGA failed to initialize, or unexpected firmware?
hm2_7i90.0: board at (ioaddr=0xD880, ioaddr_hi=0x0000, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Invalid argument (-22)
<stdin>:17: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:17: /usr/bin/rtapi_app exited without becoming ready
<stdin>:17: insmod for hm2_7i90 failed, returned -1
These show slightly different errors from rtapi_app_main but both fail.
Can anyone shed any light on this for me.
Cheers, Phill.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
27 Feb 2017 00:31 #88649
by PCW
Replied by PCW on topic 7I90HD via EPP parallel port
AFAIK most if not all MOSCHIP parallel port chips have a broken EPP implementation
so will work fine for normal LinuxCNC SPP use but fail if you try to connect to a EPP
peripheral. Best choice for using a 7I90 in parallel port mode is a on board parallel port
Next choice would be a known good PCI/PCIE parallel port card, for example Oxsemi 952 based cards
so will work fine for normal LinuxCNC SPP use but fail if you try to connect to a EPP
peripheral. Best choice for using a 7I90 in parallel port mode is a on board parallel port
Next choice would be a known good PCI/PCIE parallel port card, for example Oxsemi 952 based cards
The following user(s) said Thank You: phillc54
Please Log in or Create an account to join the conversation.
- phillc54
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
07 Mar 2017 07:22 #89124
by phillc54
Replied by phillc54 on topic 7I90HD via EPP parallel port
I got hold of a card with a Oxford PCIe952 chip and still cannot connect to the 7i90.
I have tried both addresses.
I noticed that the first line of lspci -vv mentions [ECP]
Does this mean that I somehow need to switch the card to EPP mode?
I have tried both addresses.
Warning: Spoiler!
phill@jessie-64:~$ sudo lspci -vv
01:00.0 Parallel controller: Oxford Semiconductor Ltd Device c110 (prog-if 02 [ECP])
Subsystem: Oxford Semiconductor Ltd Device c110
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 16
Region 0: I/O ports at dc00
Region 1: I/O ports at d880
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=55mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [70] Express (v1) Legacy Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <128ns, L1 <2us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s unlimited, L1 unlimited
ClockPM+ Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Capabilities: [100 v1] Device Serial Number 00-30-e0-11-11-00-01-10
Capabilities: [110 v1] Power Budgeting <?>
Kernel driver in use: parport_pc
phill@jessie-64:~$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_7i90 ioaddr=0xdc00 config=" "
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: invalid cookie, got 0xFEFEFEFE, expected 0x55AACAFE
hm2/hm2_7i90.0: FPGA failed to initialize, or unexpected firmware?
hm2_7i90.0: board at (ioaddr=0xDC00, ioaddr_hi=0xD880, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Invalid argument (-22)
<stdin>:2: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_7i90 failed, returned -1
halcmd:
phill@jessie-64:~$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_7i90 ioaddr=0xd880 config=" "
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
Linux parallel port @55424 not found
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: invalid cookie, got 0xFFFFFFFF, expected 0x55AACAFE
hm2/hm2_7i90.0: FPGA failed to initialize, or unexpected firmware?
hm2_7i90.0: board at (ioaddr=0xD880, ioaddr_hi=0x0000, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Invalid argument (-22)
<stdin>:2: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_7i90 failed, returned -1
01:00.0 Parallel controller: Oxford Semiconductor Ltd Device c110 (prog-if 02 [ECP])
Subsystem: Oxford Semiconductor Ltd Device c110
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 16
Region 0: I/O ports at dc00
Region 1: I/O ports at d880
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=55mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [70] Express (v1) Legacy Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <128ns, L1 <2us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s unlimited, L1 unlimited
ClockPM+ Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Capabilities: [100 v1] Device Serial Number 00-30-e0-11-11-00-01-10
Capabilities: [110 v1] Power Budgeting <?>
Kernel driver in use: parport_pc
phill@jessie-64:~$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_7i90 ioaddr=0xdc00 config=" "
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: invalid cookie, got 0xFEFEFEFE, expected 0x55AACAFE
hm2/hm2_7i90.0: FPGA failed to initialize, or unexpected firmware?
hm2_7i90.0: board at (ioaddr=0xDC00, ioaddr_hi=0xD880, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Invalid argument (-22)
<stdin>:2: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_7i90 failed, returned -1
halcmd:
phill@jessie-64:~$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_7i90 ioaddr=0xd880 config=" "
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
Linux parallel port @55424 not found
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: invalid cookie, got 0xFFFFFFFF, expected 0x55AACAFE
hm2/hm2_7i90.0: FPGA failed to initialize, or unexpected firmware?
hm2_7i90.0: board at (ioaddr=0xD880, ioaddr_hi=0x0000, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Invalid argument (-22)
<stdin>:2: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:2: /usr/bin/rtapi_app exited without becoming ready
<stdin>:2: insmod for hm2_7i90 failed, returned -1
I noticed that the first line of lspci -vv mentions [ECP]
Does this mean that I somehow need to switch the card to EPP mode?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
07 Mar 2017 15:10 #89137
by PCW
Replied by PCW on topic 7I90HD via EPP parallel port
It looks like the I/O high address is not correct (I would expect it to chose base +0x400 automatically)
The I/O high address is needed to change the mode
The I/O high address is needed to change the mode
Please Log in or Create an account to join the conversation.
- phillc54
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
08 Mar 2017 05:57 #89190
by phillc54
Replied by phillc54 on topic 7I90HD via EPP parallel port
If I specify ioaddr_hi=0xe000 it makes no difference to the result, it still looks at 0xd880...
I also tried ioaddr_hi=0 as per the man page and got the same result.
I also tried ioaddr_hi=0 as per the man page and got the same result.
Warning: Spoiler!
halcmd: loadrt hm2_7i90 ioaddr=0xdc00 ioaddr_hi=0xe000 config=" "
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: invalid cookie, got 0xFEFEFEFE, expected 0x55AACAFE
hm2/hm2_7i90.0: FPGA failed to initialize, or unexpected firmware?
hm2_7i90.0: board at (ioaddr=0xDC00, ioaddr_hi=0xD880, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Invalid argument (-22)
<stdin>:8: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:8: /usr/bin/rtapi_app exited without becoming ready
<stdin>:8: insmod for hm2_7i90 failed, returned -1
halcmd:
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: invalid cookie, got 0xFEFEFEFE, expected 0x55AACAFE
hm2/hm2_7i90.0: FPGA failed to initialize, or unexpected firmware?
hm2_7i90.0: board at (ioaddr=0xDC00, ioaddr_hi=0xD880, epp_wide ON) not found!
hm2_7i90: rtapi_app_main: Invalid argument (-22)
<stdin>:8: waitpid failed /usr/bin/rtapi_app hm2_7i90
<stdin>:8: /usr/bin/rtapi_app exited without becoming ready
<stdin>:8: insmod for hm2_7i90 failed, returned -1
halcmd:
Please Log in or Create an account to join the conversation.
- phillc54
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
09 Mar 2017 01:16 #89229
by phillc54
Replied by phillc54 on topic 7I90HD via EPP parallel port
It appears to work if I add epp_wide=0 to the loadrt line (why did I not try that before???).
It loads then lists the pins and show pin and show param seem to give the correct output.
I have only done this remotely so when I get home this evening I will connect some I/O up and test it out.
It loads then lists the pins and show pin and show param seem to give the correct output.
I have only done this remotely so when I get home this evening I will connect some I/O up and test it out.
Please Log in or Create an account to join the conversation.
- phillc54
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
09 Mar 2017 06:47 #89238
by phillc54
Replied by phillc54 on topic 7I90HD via EPP parallel port
Another roadblock...
loading the card gives what appears to me to be success:
I do show pin and both the user leds appear:
hm2_7i90.0.led.CR01
hm2_7i90.0.led.CR02
Both the user leds are off.
I do getp hm2_7i90.0.led.CR01 and it returns FALSE.
I do getp hm2_7i90.0.led.CR02 and it returns FALSE.
I do setp hm2_7i90.0.led.CR01 1 and setp hm2_7i90.0.led.CR02 1.
Both the leds stay off.
I do getp hm2_7i90.0.led.CR01 and it returns TRUE.
I do getp hm2_7i90.0.led.CR02 and it returns TRUE.
What am I doing wrong???
loading the card gives what appears to me to be success:
Warning: Spoiler!
phill@jessie-64:~$ halrun
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_7i90 ioaddr=0 epp_wide=0 config=" "
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: 72 I/O Pins used:
hm2/hm2_7i90.0: IO Pin 000 (P1-01): StepGen #0, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 001 (P1-03): StepGen #0, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 002 (P1-05): StepGen #1, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 003 (P1-07): StepGen #1, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 004 (P1-09): Encoder #0, pin A (Input)
hm2/hm2_7i90.0: IO Pin 005 (P1-11): Encoder #2, pin A (Input)
hm2/hm2_7i90.0: IO Pin 006 (P1-13): Encoder #0, pin B (Input)
hm2/hm2_7i90.0: IO Pin 007 (P1-15): Encoder #2, pin B (Input)
hm2/hm2_7i90.0: IO Pin 008 (P1-17): Encoder #0, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 009 (P1-19): Encoder #2, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 010 (P1-21): Encoder #1, pin A (Input)
hm2/hm2_7i90.0: IO Pin 011 (P1-23): Encoder #3, pin A (Input)
hm2/hm2_7i90.0: IO Pin 012 (P1-25): Encoder #1, pin B (Input)
hm2/hm2_7i90.0: IO Pin 013 (P1-27): Encoder #3, pin B (Input)
hm2/hm2_7i90.0: IO Pin 014 (P1-29): Encoder #1, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 015 (P1-31): Encoder #3, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 016 (P1-33): IOPort
hm2/hm2_7i90.0: IO Pin 017 (P1-35): PWMGen #0, pin Out1 (Dir or Down) (Output)
hm2/hm2_7i90.0: IO Pin 018 (P1-37): PWMGen #0, pin Not-Enable (Output)
hm2/hm2_7i90.0: IO Pin 019 (P1-39): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i90.0: IO Pin 020 (P1-41): StepGen #2, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 021 (P1-43): StepGen #2, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 022 (P1-45): StepGen #3, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 023 (P1-47): StepGen #3, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 024 (P2-01): IOPort
hm2/hm2_7i90.0: IO Pin 025 (P2-03): IOPort
hm2/hm2_7i90.0: IO Pin 026 (P2-05): IOPort
hm2/hm2_7i90.0: IO Pin 027 (P2-07): IOPort
hm2/hm2_7i90.0: IO Pin 028 (P2-09): IOPort
hm2/hm2_7i90.0: IO Pin 029 (P2-11): IOPort
hm2/hm2_7i90.0: IO Pin 030 (P2-13): IOPort
hm2/hm2_7i90.0: IO Pin 031 (P2-15): IOPort
hm2/hm2_7i90.0: IO Pin 032 (P2-17): IOPort
hm2/hm2_7i90.0: IO Pin 033 (P2-19): IOPort
hm2/hm2_7i90.0: IO Pin 034 (P2-21): IOPort
hm2/hm2_7i90.0: IO Pin 035 (P2-23): IOPort
hm2/hm2_7i90.0: IO Pin 036 (P2-25): IOPort
hm2/hm2_7i90.0: IO Pin 037 (P2-27): IOPort
hm2/hm2_7i90.0: IO Pin 038 (P2-29): IOPort
hm2/hm2_7i90.0: IO Pin 039 (P2-31): IOPort
hm2/hm2_7i90.0: IO Pin 040 (P2-33): IOPort
hm2/hm2_7i90.0: IO Pin 041 (P2-35): IOPort
hm2/hm2_7i90.0: IO Pin 042 (P2-37): IOPort
hm2/hm2_7i90.0: IO Pin 043 (P2-39): IOPort
hm2/hm2_7i90.0: IO Pin 044 (P2-41): IOPort
hm2/hm2_7i90.0: IO Pin 045 (P2-43): IOPort
hm2/hm2_7i90.0: IO Pin 046 (P2-45): IOPort
hm2/hm2_7i90.0: IO Pin 047 (P2-47): IOPort
hm2/hm2_7i90.0: IO Pin 048 (P3-01): IOPort
hm2/hm2_7i90.0: IO Pin 049 (P3-03): IOPort
hm2/hm2_7i90.0: IO Pin 050 (P3-05): IOPort
hm2/hm2_7i90.0: IO Pin 051 (P3-07): IOPort
hm2/hm2_7i90.0: IO Pin 052 (P3-09): IOPort
hm2/hm2_7i90.0: IO Pin 053 (P3-11): IOPort
hm2/hm2_7i90.0: IO Pin 054 (P3-13): IOPort
hm2/hm2_7i90.0: IO Pin 055 (P3-15): IOPort
hm2/hm2_7i90.0: IO Pin 056 (P3-17): IOPort
hm2/hm2_7i90.0: IO Pin 057 (P3-19): IOPort
hm2/hm2_7i90.0: IO Pin 058 (P3-21): IOPort
hm2/hm2_7i90.0: IO Pin 059 (P3-23): IOPort
hm2/hm2_7i90.0: IO Pin 060 (P3-25): IOPort
hm2/hm2_7i90.0: IO Pin 061 (P3-27): IOPort
hm2/hm2_7i90.0: IO Pin 062 (P3-29): IOPort
hm2/hm2_7i90.0: IO Pin 063 (P3-31): IOPort
hm2/hm2_7i90.0: IO Pin 064 (P3-33): IOPort
hm2/hm2_7i90.0: IO Pin 065 (P3-35): IOPort
hm2/hm2_7i90.0: IO Pin 066 (P3-37): IOPort
hm2/hm2_7i90.0: IO Pin 067 (P3-39): IOPort
hm2/hm2_7i90.0: IO Pin 068 (P3-41): IOPort
hm2/hm2_7i90.0: IO Pin 069 (P3-43): IOPort
hm2/hm2_7i90.0: IO Pin 070 (P3-45): IOPort
hm2/hm2_7i90.0: IO Pin 071 (P3-47): IOPort
hm2/hm2_7i90.0: registered
hm2_7i90.0: board at (ioaddr=0xDC00, ioaddr_hi=0xD880, epp_wide OFF) found
halcmd:
halcmd: loadrt hostmot2
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
halcmd: loadrt hm2_7i90 ioaddr=0 epp_wide=0 config=" "
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
hm2: no firmware specified in config modparam! the board had better have firmware configured already, or this won't work
hm2/hm2_7i90.0: 72 I/O Pins used:
hm2/hm2_7i90.0: IO Pin 000 (P1-01): StepGen #0, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 001 (P1-03): StepGen #0, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 002 (P1-05): StepGen #1, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 003 (P1-07): StepGen #1, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 004 (P1-09): Encoder #0, pin A (Input)
hm2/hm2_7i90.0: IO Pin 005 (P1-11): Encoder #2, pin A (Input)
hm2/hm2_7i90.0: IO Pin 006 (P1-13): Encoder #0, pin B (Input)
hm2/hm2_7i90.0: IO Pin 007 (P1-15): Encoder #2, pin B (Input)
hm2/hm2_7i90.0: IO Pin 008 (P1-17): Encoder #0, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 009 (P1-19): Encoder #2, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 010 (P1-21): Encoder #1, pin A (Input)
hm2/hm2_7i90.0: IO Pin 011 (P1-23): Encoder #3, pin A (Input)
hm2/hm2_7i90.0: IO Pin 012 (P1-25): Encoder #1, pin B (Input)
hm2/hm2_7i90.0: IO Pin 013 (P1-27): Encoder #3, pin B (Input)
hm2/hm2_7i90.0: IO Pin 014 (P1-29): Encoder #1, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 015 (P1-31): Encoder #3, pin Index (Input)
hm2/hm2_7i90.0: IO Pin 016 (P1-33): IOPort
hm2/hm2_7i90.0: IO Pin 017 (P1-35): PWMGen #0, pin Out1 (Dir or Down) (Output)
hm2/hm2_7i90.0: IO Pin 018 (P1-37): PWMGen #0, pin Not-Enable (Output)
hm2/hm2_7i90.0: IO Pin 019 (P1-39): PWMGen #0, pin Out0 (PWM or Up) (Output)
hm2/hm2_7i90.0: IO Pin 020 (P1-41): StepGen #2, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 021 (P1-43): StepGen #2, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 022 (P1-45): StepGen #3, pin Step (Output)
hm2/hm2_7i90.0: IO Pin 023 (P1-47): StepGen #3, pin Direction (Output)
hm2/hm2_7i90.0: IO Pin 024 (P2-01): IOPort
hm2/hm2_7i90.0: IO Pin 025 (P2-03): IOPort
hm2/hm2_7i90.0: IO Pin 026 (P2-05): IOPort
hm2/hm2_7i90.0: IO Pin 027 (P2-07): IOPort
hm2/hm2_7i90.0: IO Pin 028 (P2-09): IOPort
hm2/hm2_7i90.0: IO Pin 029 (P2-11): IOPort
hm2/hm2_7i90.0: IO Pin 030 (P2-13): IOPort
hm2/hm2_7i90.0: IO Pin 031 (P2-15): IOPort
hm2/hm2_7i90.0: IO Pin 032 (P2-17): IOPort
hm2/hm2_7i90.0: IO Pin 033 (P2-19): IOPort
hm2/hm2_7i90.0: IO Pin 034 (P2-21): IOPort
hm2/hm2_7i90.0: IO Pin 035 (P2-23): IOPort
hm2/hm2_7i90.0: IO Pin 036 (P2-25): IOPort
hm2/hm2_7i90.0: IO Pin 037 (P2-27): IOPort
hm2/hm2_7i90.0: IO Pin 038 (P2-29): IOPort
hm2/hm2_7i90.0: IO Pin 039 (P2-31): IOPort
hm2/hm2_7i90.0: IO Pin 040 (P2-33): IOPort
hm2/hm2_7i90.0: IO Pin 041 (P2-35): IOPort
hm2/hm2_7i90.0: IO Pin 042 (P2-37): IOPort
hm2/hm2_7i90.0: IO Pin 043 (P2-39): IOPort
hm2/hm2_7i90.0: IO Pin 044 (P2-41): IOPort
hm2/hm2_7i90.0: IO Pin 045 (P2-43): IOPort
hm2/hm2_7i90.0: IO Pin 046 (P2-45): IOPort
hm2/hm2_7i90.0: IO Pin 047 (P2-47): IOPort
hm2/hm2_7i90.0: IO Pin 048 (P3-01): IOPort
hm2/hm2_7i90.0: IO Pin 049 (P3-03): IOPort
hm2/hm2_7i90.0: IO Pin 050 (P3-05): IOPort
hm2/hm2_7i90.0: IO Pin 051 (P3-07): IOPort
hm2/hm2_7i90.0: IO Pin 052 (P3-09): IOPort
hm2/hm2_7i90.0: IO Pin 053 (P3-11): IOPort
hm2/hm2_7i90.0: IO Pin 054 (P3-13): IOPort
hm2/hm2_7i90.0: IO Pin 055 (P3-15): IOPort
hm2/hm2_7i90.0: IO Pin 056 (P3-17): IOPort
hm2/hm2_7i90.0: IO Pin 057 (P3-19): IOPort
hm2/hm2_7i90.0: IO Pin 058 (P3-21): IOPort
hm2/hm2_7i90.0: IO Pin 059 (P3-23): IOPort
hm2/hm2_7i90.0: IO Pin 060 (P3-25): IOPort
hm2/hm2_7i90.0: IO Pin 061 (P3-27): IOPort
hm2/hm2_7i90.0: IO Pin 062 (P3-29): IOPort
hm2/hm2_7i90.0: IO Pin 063 (P3-31): IOPort
hm2/hm2_7i90.0: IO Pin 064 (P3-33): IOPort
hm2/hm2_7i90.0: IO Pin 065 (P3-35): IOPort
hm2/hm2_7i90.0: IO Pin 066 (P3-37): IOPort
hm2/hm2_7i90.0: IO Pin 067 (P3-39): IOPort
hm2/hm2_7i90.0: IO Pin 068 (P3-41): IOPort
hm2/hm2_7i90.0: IO Pin 069 (P3-43): IOPort
hm2/hm2_7i90.0: IO Pin 070 (P3-45): IOPort
hm2/hm2_7i90.0: IO Pin 071 (P3-47): IOPort
hm2/hm2_7i90.0: registered
hm2_7i90.0: board at (ioaddr=0xDC00, ioaddr_hi=0xD880, epp_wide OFF) found
halcmd:
I do show pin and both the user leds appear:
hm2_7i90.0.led.CR01
hm2_7i90.0.led.CR02
Both the user leds are off.
I do getp hm2_7i90.0.led.CR01 and it returns FALSE.
I do getp hm2_7i90.0.led.CR02 and it returns FALSE.
I do setp hm2_7i90.0.led.CR01 1 and setp hm2_7i90.0.led.CR02 1.
Both the leds stay off.
I do getp hm2_7i90.0.led.CR01 and it returns TRUE.
I do getp hm2_7i90.0.led.CR02 and it returns TRUE.
What am I doing wrong???
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17904
- Thank you received: 4774
09 Mar 2017 14:25 #89255
by PCW
Replied by PCW on topic 7I90HD via EPP parallel port
Those commands will do no actual communication with the 7I90 card as
you have not setup a thread and addf-ed the 7I90 read and write functions
to that thread
At this point its probably better to have an actual hal file
you have not setup a thread and addf-ed the 7I90 read and write functions
to that thread
At this point its probably better to have an actual hal file
The following user(s) said Thank You: phillc54
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
10 Mar 2017 14:42 - 10 Mar 2017 14:42 #89331
by andypugh
You need to setup and start the realtime theads for anything to happen on the board.Is how you do that in a halrun command line session.
Replied by andypugh on topic 7I90HD via EPP parallel port
I do setp hm2_7i90.0.led.CR01 1 and setp hm2_7i90.0.led.CR02 1.
Both the leds stay off.
You need to setup and start the realtime theads for anything to happen on the board.
loadrt threads
addf hm2_7i90.0.read thread1
addf hm2_7i90.0.write thread1
start
Last edit: 10 Mar 2017 14:42 by andypugh.
The following user(s) said Thank You: PKM, phillc54
Please Log in or Create an account to join the conversation.
- phillc54
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
10 Mar 2017 21:47 #89377
by phillc54
Replied by phillc54 on topic 7I90HD via EPP parallel port
Thank you guys, its amazing how things just work when you do them the correct way.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.082 seconds