This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PCIe和主机端连接问题



各位大神:

我现在在使用自己做的C6678板卡,PCIe接口(2.0)通过switch与主机端相连,C6678配置为EP模式,使用SPI加载方式,将PCIe初始化程序烧写到Flash中后,重启主机和板卡,在主机端通过windriver能够检测到设备,但是只能读到BAR0空间,我自己配置的其他BAR空间检测不到,现在是一点头绪都没有,想问一下大神这是什么原因,该怎么解决呢?我的PCIe初始化程序中关于BAR空间的配置如下,希望各位大神指点一下有什么错误。

BAR0=(int)0x0FFFFFFF;

BAR1=(int)0x007FFFFF;

BAR2=(int)0x0FFFFFFF;

BAR3=(int)0x0FFFFFFF;

BAR4=(int)0x0FFFFFFF;

BAR5=0x0;

IB_BAR0=1;

IB_START0_LO=0XA0000000;

IB_OFFSET0=0X10840000;

BAR1=0XA0000000;

IB_BAR1=2;

IB_START1_LO=0XA0800000;

IB_OFFSET1=0X80000000;

BAR2=0XA0800000;