Project

General

Profile

Issues programming FPGA using Linux driver

Added by Lars Majlof almost 11 years ago

I am trying to program the LX45 FPGA on my MityDsp board using the fpga_ctrl.ko driver but don't have much luck.
Everything seems to work using the procedure in the Wiki page.
It seems like I can reset the FPGA, set it into programming mode,and write the bin file. But the DONE led never turns on, and when I cat /sys/devices/fpga_ctrl/state it says that it is programming (until I decide to reset it).

If I echo "3" > /sys/devices/fpga_ctrl/cmd the output of cat /sys/devices/fpga_ctrl/state is: "3 : PROGRAM_FAIL".

If I program using Impact (and the associated .bit file) the FPGA programs properly, and works as designed.
(If I echo "1" > /sys/devices/fpga_ctrl/cmd after programming with Impact, the DONE LED turns off.)

My FPGA does not use the CriticalLink framework - is that why is does not work?

Any thoughts would be appreciated,
Thanks,
Lars


Replies (2)

RE: Issues programming FPGA using Linux driver - Added by Michael Williamson almost 11 years ago

If you are not using the framework, the state sysfs value will report FAIL (I think it is checking the version of the FPGA base module in our fraemwork).

But.... the DONE LED should turn on.

Is it possible that you are not creating the BIN file correctly as far as the swap bits option. You are using the BIN file generated by IMPACT, not the BIT file used for JTAG programming, right?

-Mike

RE: Issues programming FPGA using Linux driver - Added by Lars Majlof almost 11 years ago

Thanks for the quick reply!
I am indeed using a BIN file. It is entirely possible that it is not bit-swapped, it was generated months ago. I will regenerate it to make sure it is formatted properly.
Thanks,
Lars

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)