Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Super Contributor
jmonteiro-dme
Posts: 183
Registered: ‎05-15-2009
0

Access to BAR0 freezes PC?!

Hello,

 

I'm using the PCI Bridge core to interface microblaze with my PC via PCI. I have created a simple EDK software app that simply writes a value to the PLB register that is translated to the PCI BAR0 address. I want to read this value with my computer. So, after I have my design in PROM, i connect the board to my PC and it's recognized as CoProcessor. Everything ok untill here. The problem is that when I run PCI Tree or WinDriver to read the contents of the BAR0, the computer freezes.

 

Have any1 got this problem?

 

Best,

JM

Super Contributor
jmonteiro-dme
Posts: 183
Registered: ‎05-15-2009
0

Re: Access to BAR0 freezes PC?!

[ Edited ]

Hi

 

I have concluded that the problem is in my SW. I'm writing to bar0 using an integer pointer:

 

    int *address_wr     = XPAR_PCI_BRIDGE_IPIFBAR_0;
   *address_wr = 0x0000000F;
 

If I DO remove these lines, i can read the PCI BAR0 with PCITree in my PC without freeze, however it returns zero (as it should).  

 

Why can't I write to the PCI port this way? How should I do it?

 

Best,

JM

 

 

Message Edited by jmonteiro-dme on 11-11-2009 12:06 PM