On Thu, 8 May 2008, Anders Wallin wrote:

> Date: Thu, 08 May 2008 15:57:49 +0300
> From: Anders Wallin <[EMAIL PROTECTED]>
> Reply-To: "Enhanced Machine Controller (EMC)"
>     <emc-users@lists.sourceforge.net>
> To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
> Subject: [Emc-users] having to reload fpga config on m5i20 on every bootup?
> 
> Hi all,
>
> I'm using an m5i20 card with the hostmot5_4eh.bit configuration that
> allows PWM at 50 kHz.
>
> I have to reload the fpga configuration after each bootup of the machine
> with 'sudo m5i20cfg hostmot5_4eh.bit 0'
>
> In my HAL files I use the m5i20 driver without loading the default
> (wrong, in my case) fpga config:
> loadrt hal_m5i20 loadFpga=0 dacRate=16666
>
> (the driver assumes the PWM clock is 33MHz, but with the modified config
> it's actually 100MHz, so I config it to 16.7 kHz and get 3*16.7kHz=50kHz
> PWM output)
>
> should I have to do this m5i20cfg command every time I run emc or should
> the fpga config stick once it's loaded?
>
>
> Anders

You need only load the FPGA once, as long as you always have the LoadFPGA flag 
set to 0. If LoadFPGA is set to 0 the Device_LoadFpga function in the hal_m5i20
module is never called, This is the only function in hal_m5i20 that mucks 
about with the PCI bridges GPIO bits responsible for re-programming the 
FPGA...


Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to