11-10-2009 08:33 AM
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?
11-11-2009 12:05 PM - edited 11-11-2009 12:06 PM
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?