Project

General

Profile

JTAG_avalon_master access HPS DDR timeout

Added by Xiang Shuai 12 days ago

Hi,

Using MitySOM_5CSX, I added FPGA to HPS SDRAM interface avalon-mm read-only, and try to using jtag_avalon_master to read out the data from HPS DDR, but always timeout. Need a bridge or something worng?

clipboard-202602021625-of8oh.png

BR,
Xiang


Replies (10)

RE: JTAG_avalon_master access HPS DDR timeout - Added by Daniel Vincelette 12 days ago

Hi Xiang,

When you enabled the FPGA to HPS SDRAM bridge did you also rebuild your preloader and u-boot? This is needed because the HPS is the one that takes these bridges out of reset.

Best regards,
Dan

RE: JTAG_avalon_master access HPS DDR timeout - Added by Xiang Shuai 11 days ago

Hi Dan,

Thanks for your information, instead of rebuild preload and u-boot, do you have any command that can do release these bridges out of reset? Now, I can use Putty connect system by SSH.

BR,
Xiang

RE: JTAG_avalon_master access HPS DDR timeout - Added by Daniel Vincelette 11 days ago

Hi Xiang,

You would need to update the `fpga2sdram_handoff` variable in u-boot to enable the ports that you would like. Here is the HPS doc on the FPGA port controller register map: https://www.intel.com/content/www/us/en/programmable/hps/cyclone-v/hps.html#sfo1411577376106.html

I would still recommend rebuilding the preloader and u-boot because that's normally the foolproof way of enabling the bridge that you want.

Best regards,
Dan

RE: JTAG_avalon_master access HPS DDR timeout - Added by Daniel Vincelette 11 days ago

A colleague just informed me that even if you set that variable to enable the bridges, it may still not work because the preloader also enables the bridges as part of configuring the HPS I/Os. Because of this, the correct and supported path is to rebuild and update the preloader and U-Boot with the appropriate bridge settings enabled. This ensures the bridges are released at the correct point in the boot sequence and avoids undefined behavior that can occur if they are manipulated later from user space.

Dan

RE: JTAG_avalon_master access HPS DDR timeout - Added by Xiang Shuai 11 days ago

Thanks Dan, I tried change resigster 0xFFC25080 from 0x00000000 to 0x000003FF, but still timeout. I will update u-boot to try again.

RE: JTAG_avalon_master access HPS DDR timeout - Added by Xiang Shuai 9 days ago

Hi Dan,

I download uboot-socfpga.tar.gz, but I don't know how to update `fpga2sdram_handoff` variable in u-boot. Could you give me a detail instruction ?  Thanks!

BR,
Xiang

RE: JTAG_avalon_master access HPS DDR timeout - Added by Daniel Vincelette 9 days ago

Hi Xiang,

The fpga2sdram_handoff vairable will be set from the quartus project so you don't need to manually change it. Here are our build instructions for the preloader and u-boot: https://support.criticallink.com/redmine/projects/mityarm-5cs/wiki/Building_uboot_231

Best regards,
Dan

RE: JTAG_avalon_master access HPS DDR timeout - Added by Xiang Shuai 8 days ago

Hi Dan,

I meet an issue at step 4 configure and build U-boot and the SPL.
$ make socfpga_nitysom5cs_defconfig
Makefile:40: *** missing separator. Stop
what can I do?

BR,
Xiang

RE: JTAG_avalon_master access HPS DDR timeout - Added by Daniel Vincelette 8 days ago

Hi Xiang,

It looks like you have spelling mistake in your command, it should be the following:

make socfpga_mitysom5cs_defconfig

Best regards,
Dan

RE: JTAG_avalon_master access HPS DDR timeout - Added by Xiang Shuai 5 days ago

Hi Dan,

clipboard-202602091046-ikfkk.png
please see attached picture, that's a typo when I fill this page.

BR,
Xiang

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