Hi,
I will have to relearn how to do the whole git/pull stuff (which will take some time).
And I will have to clean up the files before I do that.......
In the mean time, if you e-mail me at
sup...@xylotex.com I can e-mail you the files.
I have the gpmc access file currently named hm2_Xi90.c, but that will probably change
That code basically sets up the GPMC bus and provides read/write function for the hostmot2 software. The bit settings for the gpmc configure the bus for multiplexed address/data with specific timing that the bitfile in the FPGA would expect
If you are going to use the GPMC you will need to disable the emmc in the /boot/uboot/uEnv.txt (or wherever that file is kept these days- I'm still working from an old 2015 version of machinekit).
Then you'll need to get the vhdl file to match the timing generated by the gpmc bus. It's currently called topEPPHostMot2.vhd on my computer, but should be renamed to something else as well. I started with mesa EPP bus stuff to make the gpmc interface and haven't renamed the file. There is a lot of stuff commented out that should be cleaned up, but dismissing that, you should be able to get an idea of what was done to interface to the gpmc.
The files I have is for the board (cape) I'm presently working with:
(4) sets of Servo PWM (PWM/DIR/Enable) outputs
(4) sets of Single ended Incremental Encoder inputs along with two inputs for limit switches
(1) Single Ended incremental Encoder input for Spindle
(1) PWM output for spindle speed control along with FWD,REV output commands, and a FLT input.
(1) Single Ended incremental encoder input for MPG (A and B only, no index input)
(1) UART in TTL mode to communicate with a uP on the MPG which encodes axis select and jog rate switches as well as other button inputs
Mist/flood output signals
E-stop signal chain
To see a picture, go here:
http://xylotex.netfirms.com/OSCommerce/catalog/product_info.php?cPath=27&products_id=122 Anyway, drop me an e-mail, and I'll try to get you the files you want.
Jeff