Hello,
I have Mesa 7i90HD card and I want to connect it to ODROID-C1 computer running LinuxCNC. The ODROID-C1 has 3,3V compatible l/O, therefore I connected the 7i90HD card directly on ODROID's SPI interface without voltage translator.
I supposed it must working instantly, because it is almost exactly same system as there:
github.com/jepler/u3-7i90/blob/master/eagle/oddspi-sch.pdf
But I have problem with SPI communication with Mesa card, the card does not response to input SPI data. If I load the hm2_spi driver by these commands:
loadrt hostmot2
loadrt hm2_spi spidev_path="/dev/spidev0.0" spidev_rate=500
I got the invalid cookie error, which is obviously related to the fact that mesa card does not respond anything on input data. How can I make the mesa card talking on SPI. Do I need to switch a communication mode on a new card by some procedure?
Code:
Note: Using POSIX non-realtime
hm2: loading Mesa HostMot2 driver version 0.15
probing device /dev/spidev0.0 with rate 500000 Hz
Invalid cookie
Read: ffffffff ffffffff ffffffff ffffffff
hm2_spi: rtapi_app_main: No such device (-19)
mesa_test.hal:2: waitpid failed /home/odroid/repos/linuxcnc-MLAB/bin/rtapi_app hm2_spi
mesa_test.hal:2: /home/odroid/repos/linuxcnc-MLAB/bin/rtapi_app exited without becoming ready
mesa_test.hal:2: insmod for hm2_spi failed, returned -1
I attach several oscilloscope images:
Blue line shows data from odroid (Connected to PIN 13 of MESA P4 connector) and yellow line is SPICLK signal at PIN11 of P4 connector.
Here blue line is a SPIOUT at PIN 15 and yellow line SPICLK again.
Here is overall look at the test setup: