
30 Oct
2007
30 Oct
'07
4:51 p.m.
The following patch fixes a bug in the slave serial programming mode for the xilinx spartan2 FPGA. A "char val" is declared, but it is used as a signed char. The check for negative value (<0) is always true on arm, or any other platform in which the char is not signed by default. As a result the FPGA cannot be programmed.
By the way, I have tested this code and it works fine, apart from this error. I am using it in ARM platforms in both slave parallel and slave serial modes. I am this because I don't see any other platforms using it.
This is a patch against 1.2.0, but I saw that the same code exists in 1.3.0-rc3 as well.
-- Angelos Manousarides