Mesa 7i92M Support

More
12 Apr 2017 22:44 #91275 by rodw
The following user(s) said Thank You: tommylight

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

More
01 Jun 2017 01:17 #93909 by tjmarch
Replied by tjmarch on topic Mesa 7i92M Support
Having a bit of trouble running a Bananna Pi M2 with kernel 4.4.1-rt6-sunxi which is a preempt_rt kernel. Have set /etc/network/interfaces to:
auto eth0
iface eth0 inet static
address 192.168.1.1
hardware-irq-coalesce-rx-usecs 0
able to connect with network manager to ip 192.168.1.121 according to network manager.
But when running in Terminal:
tim@bananapim2:~/mesaflash-master$ ./mesaflash --device 7i92 --addr 192.168.1.121 --readhmid
No 7I92 board found
I have installed
github.com/micges/mesaflash
because mesaflash is not avialable from Synaptic when doing search for Hostmot2 I installed LCNC from buildbot.
Could use some help do not know what to do next

Tim

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

More
01 Jun 2017 01:34 #93910 by PCW
Replied by PCW on topic Mesa 7i92M Support
Can you ping the 7I92 card? if not you need to find out why first.

Is the card jumpered for 192.168.1.121 ? and did you power cycle the card after moving jumpers?

Do you have a local network (Say with WIFI or another Ethernet connection) that overlaps 192.168.121?

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

More
01 Jun 2017 01:43 #93911 by tjmarch
Replied by tjmarch on topic Mesa 7i92M Support
Dis-connected etho cable from router then connected cable to 7i92m ran:
tim@bananapim2:~/mesaflash-master$ ./mesaflash --device 7i92 --addr 192.168.1.121 --readhmid
Configuration Name: HOSTMOT2

General configuration information:

BoardName : MESA7I92
FPGA Size: 9 KGates
FPGA Pins: 144
Number of IO Ports: 2
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 2 of IOPort in configuration
Version: 0
Registers: 5
BaseAddress: 1000
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: 5A00
ClockFrequency: 100.000 MHz
Register Stride: 256 bytes
Instance Stride: 64 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: 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 P2
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir

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

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

1 17 IOPort None
14 18 IOPort None
2 19 IOPort None
15 20 IOPort None
3 21 IOPort None
16 22 IOPort None
4 23 IOPort None
17 24 IOPort None
5 25 IOPort None
6 26 IOPort None
7 27 IOPort None
8 28 IOPort None
9 29 IOPort None
10 30 IOPort None
11 31 IOPort None
12 32 IOPort None
13 33 IOPort None

So I guess I am good correct?

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

More
01 Jun 2017 01:56 #93912 by tjmarch
Replied by tjmarch on topic Mesa 7i92M Support
I will have more questions later going to bed thanks PCW

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

More
01 Jun 2017 02:10 #93913 by PCW
Replied by PCW on topic Mesa 7i92M Support
Yes, that shows the 7I92 is connected and working
If you have a overlapping IP address range on another connection
(you did) the packets to 192.168.1.121 are going to be routed out that
connection instead of to the 7I92.
This is why its suggested to use the 10.10.10.10 address instead of the default
192.168.1.121. The default address is handy for setup (on a shared network)
but not good for a dedicated connection because of the likelyhood of overlap
with standard DHCP pools

BTW you dont need the addr=192.168.1.121 (its the default if no address is specified)

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

More
24 Oct 2017 08:11 #100733 by Bordug
Replied by Bordug on topic Mesa 7i92M Support
Hello. This is my first experience with the use of EMC2. After the spoiled details on MACH3, I bought Mesa 7i92. The problem is that drivers Leadshine AM882H goes into error if there is no software Enable. When the power is turned on, it indicates a phase error, or a current error. With the software Enable, everything works well. But I can not assign to a free pin - I do not know how to register. I would also like to connect a touch probe and an external e-stop, but it's already secondary. Without software enable I can not work. I tried to write like this:
But still on all free gpio + 5v.
Sorry for my english. Thank you in advance for your cooperation.
Attachments:

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

More
24 Oct 2017 08:59 #100736 by andypugh
Replied by andypugh on topic Mesa 7i92M Support
Is the Xen signal connected to anything else?

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

More
24 Oct 2017 09:58 #100739 by Bordug
Replied by Bordug on topic Mesa 7i92M Support
Physically, it is connected to an oscilloscope. I look at the oscilloscope as the signal changes. At the moment there is always + 5V, as on other free iO. In the configuration, I didn't write anything else - I don't know how.

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

More
24 Oct 2017 10:56 #100743 by andypugh
Replied by andypugh on topic Mesa 7i92M Support
I was meaning in the HAL file, is anything driving the Xen signal?

Also, have you set the GPIO pin in question to output mode (and, optionally, to open-drain mode?)
linuxcnc.org/docs/2.7/html/man/man9/hostmot2.9.html#General Purpose I/O

setp hm2_7i92.0.gpio.001.is-output 1
#setp hm2_7i92.0.gpio.001.is_opendrain 1

But even then nothing will happen unless the Xen signal is driven by a HAL output pin (such as axis.0.amp-enable-out)

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

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