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 [email protected] 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



On Thursday, May 4, 2017 at 12:20:03 PM UTC-7, Timm Eversmeyer wrote:
>
>
>
> Am Dienstag, 2. Februar 2016 04:25:51 UTC+1 schrieb Jeff Pollard:
>>
>>
>>   I started with the TopEPPSHostMot2 version of the FPGA code from 
>> mesanet.com and modified that by removing the parallel port interface 
>> and building in the GPMC interface.  Then on the machinekit side I wrote a 
>> stand alone C program that did the same I/O as the hm2_Xi90.c file 
>> mentioned above.  There is a memory space in the FPGA where a "cookie" is 
>> stored once it has been properly programmed. The value is:55AACAFE and is 
>> stored at location 0x0100.  Once you can read that, you can start making 
>> your own hm2_XXX file.
>>
>>   Hopefully that will give people wanting to use hostmot2 with MachineKit 
>> a start on how I implemented it.
>>
>
> I have an unused LogiBone [1] which could be used to run hostmot2. I have 
> not found the VDHL code in your MachineKit fork [2]. Would you mind share 
> the GPMC adapter to hostmot2 with me?
>
> Your Beagle Bone FPGA shield looks nice. Looking forward to hear any news.
>
>
> [1] http://valentfx.com/logi-bone/  
> [2] 
> https://github.com/xylotex/MachineKit/tree/MachineKit-ubc/src/hal/drivers
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to