Jump to content

PCI Problem: If 2 DUTs are installed then BAR0 reads return 0


Recommended Posts

Hi there, This is my first posting on lava. A coworker pointed me here after I told him I had reached my limit trying to debug this hardware issue. I have a PMC device I am trying to test. The test plan calls for putting 2 of the devices on PMC-PCI adapter cards and installing them in a Windows PC, then running tests.

When I put just one of the devices in the PC I didn't have a problem. I made a driver using NI's VISA driver wizard. And I was able to read from the PCI configuration and BAR0 address spaces of the device using the VISA test panel in MAX.

However, when I plugged in the second DUT I started having a strange issue. I could still read from the configuration spaces from both devices, but one of the two DUTs always returned zero when I read from it's registers in the BAR0 address space, the other worked normally. No errors showed in Windows Device Manager.

So far I found a workaround that gets both cards working, but I still haven't figured out the root of the problem.

  1. Power up the PC with both cards installed
  2. After Windows boots up, switch off the power on one of the PCI-PMC adaptor cards
  3. Then in the Windows Device Manager click the "Scan for hardware changes" button and check that one of the cards is gone
  4. Switch the carrier card back on
  5. "Scan for hardware changes" again and click through Windows' "Found new Hardware" dialogue to re-install the driver

After that rigamarole both cards work untill I restart the PC. Does this issue sound familiar to anyone out there? Can you offer some suggestions for steps I should take for diagnosing PCI problems?

Link to comment

Hey thanks for replying. I don't have a driver from the manufacturer because they haven't released one yet, instead I used NI's VISA driver wizard to make a default PCI driver for testing purposes. I'm hoping to get some words of wisdom to help me find what is causing the problem.

Link to comment

Unfortunately, I don't have any experience with VISA driver generation.

Of course, my first suggestion is to get in touch with NI and ask how to better diagnose this issue and if they've seen it before. A situation where a generated driver is used on multiple identical devices may not be that common and could have some issues.

Also, you could use NI's I/O Trace to log everything that's going on with VISA - I don't know if this will catch what the driver is doing, but an I/O trace is usually something that NI requests to troubleshoot hardware-related issues. Additionally, you could check the Windows Event Log to see if there's any information there - again, I don't know if the driver will report there, but it's worth checking.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.