Forum Discussion
HPS f2sdram read/write errors
Hi aucamera1,
- First, lets make sure you are enabling the bridges properly.
- Are you using the Altera GSRD?
- If so,
- are booting up to U-Boot and then stopping there to do your reads/writes from your custom logic?
- Or are you booting all the way to Linux to then do your reads/writes from your custom logic?
Please see U-boot commands list at:
https://altera-fpga.github.io/rel-25.3.1/embedded-designs/agilex-5/e-series/premium/boot-examples/ug-linux-boot-agx5e-premium/#boot-from-sd-card_1
- In the above U-Boot commands list, Here is the boot command that runs bridge enable
- CONFIG_BOOTCOMMAND="load mmc 0:1 \${loadaddr} ghrd.core.rbf; fpga load 0 \${loadaddr} \${filesize};bridge enable; mmc rescan; fatload mmc 0:1 82000000 Image;fatload mmc 0:1 86000000 socfpga_agilex5_socdk.dtb;setenv bootargs console=ttyS0,115200 root=\${mmcroot} rw rootwait;booti 0x82000000 - 0x86000000"
- Please make sure you run bridge enable command before trying to read/write from your custom logic.
Regards,
Yoda (Jeff)
- We started with the GSRD, but we've made changes since then.
- We're booting all the way into Linux.
- The bridge enable command is present in the U-BOOT boot arg configuration.
We are using HPS-first boot configuration. Is it possible our custom logic is trying to send transactions before the bridge enable has completed its work?
- Yoda_Altera5 months ago
New Contributor
Ok. Great. So, I assume you program the fabric from Linux, right? If so, then bridge enable will be completed well before the Fabric is programmed (of course).
Now, you have probably already done this, but just to make sure I am clear, please read/write from your custom logic to address:
0x00_8000_0000 (0GB physical DDR)
0x08_8000_0000 (2GB physical DDR)
0x09_0000_0000 (4GB physical DDR)
0x09_8000_0000 (6GB physical DDR)
- aucamera15 months ago
New Contributor
Hi Yoda_Altera
Hi Yoda,
Attached are the Read signals from a read cycle to the SDAM. Here I’m showing 00_8000_0000 and 08_8000_0000 address, but the “9” addresses behave the same
thanks
- Yoda_Altera5 months ago
New Contributor
Hi aucamera1,
Thanks for those snapshots. Let me do some investigation here and I will get back to you soon.