Project

General

Profile

FPGA Done led not turning on with CPU programming

Added by Vivek Ponnani over 1 year ago

Hi,
We have made our own customized board uing the Industrial IO Board and the Analog expansion board.

We were programming the FPGA (x16) using the JTAG programmer. We used to have the Done LED turned ON once the programming was done. Using the JTAG programmer we were downloading the .bit file.

Now we are trying to load FPGA via CPU. We are following the link:
"https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/Programming_the_FPGA"

1. When we program the FPGA with the IndustrialIO_top_aexp.bin file provided in the Analog Expansion Suite, we again have the FGPA Done LED turned ON. The set of steps and response is as below

_U-Boot >loadb 0xC0700000
Ready for binary (kermit) download to 0xC0700000 at 115200 bps...
Total Size = 0x00071544 = 464196 Bytes
Start Addr = 0xC0700000

uBoot> sf probe 0
uBoot> sf erase 0x580000 0x80000
uBoot> sf write 0xC0700000 0x580000 0x00071544

uBoot> sf probe 0
uBoot> sf read 0xc0700000 0x580000 0x80000
uBoot> loadfpga 0xc0700000

Loading FPGA from 0xC0700000 with 0x80000 bytes
Loading FPGA done
Found Device ID 00-Base Module (01.01) at 66000000 [0]
Found Device ID 04-GPIO (01.03) at 66000080 [1]
Found Device ID 14-SPI Interface (02.01) at 66000100 [2]
Found Device ID 255-Unknown (01.00) at 66000180 [3]_

2. We used the IndustrialIO.xise from the Analog Expansion suite and created our own project. We were able to add relevant source files and compile our project. We are able to program the .bit file generated successfully through JTAG. The program runs fine with FPGA LED turned ON.

Now we try to load the associated .bin file of our project via CPU (following the steps as per "https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/Programming_the_FPGA") we get the following response:

_Hit any key to stop autoboot: 0
U-Boot > loadb 0xC0700000
  1. Ready for binary (kermit) download to 0xC0700000 at 115200 bps...
  2. Total Size = 0x00071544 = 464196 Bytes
  3. Start Addr = 0xC0700000
    U-Boot >
    U-Boot > sf probe 0
    8192 KiB M25P64 at 0:0 is now current device
    U-Boot > sf erase 0x580000 0x80000
    U-Boot > sf write 0xC0700000 0x580000 0x00071544
    U-Boot > sf probe 0
    8192 KiB M25P64 at 0:0 is now current device
    U-Boot > sf read 0xc0700000 0x580000 0x80000
    U-Boot > loadfpga 0xc0700000
    Loading FPGA from 0xC0700000 with 0x80000 bytes
    Loading FPGA done_

We find that the FPGA Done LED does not turn ON and we do not get the following response:

Found Device ID 00-Base Module (01.01) at 66000000 [0]
Found Device ID 04-GPIO (01.03) at 66000080 [1]
Found Device ID 14-SPI Interface (02.01) at 66000100 [2]
Found Device ID 255-Unknown (01.00) at 66000180 [3]

It seems we are missing the Device ID settings some where in VHDL programming. Kinldy suggest the solution for the above problem.

Thanks and Regards,
Vivek Ponnani


Replies (2)

RE: FPGA Done led not turning on with CPU programming - Added by Michael Williamson over 1 year ago

How are you generating the bin file?

Check this wiki page. At the bottom there is a command for generation.

-Mike

RE: FPGA Done led not turning on with CPU programming - Added by Vivek Ponnani over 1 year ago

Michael Williamson wrote:

How are you generating the bin file?

Check this wiki page. At the bottom there is a command for generation.

-Mike

Thanks a lot Michael. There was a problem in .bin file generation. We followed your suggested wiki page and now it is working.

Thanks.
- Vivek

    (1-2/2)
    Add picture from clipboard (Maximum size: 500 MB)