Jump to content
  • 0

Windows SDK problem on Nexys4-DDR board


subodh vashist

Question

After some research and homework I came to know that digilent also provide different DCAP or APT dlls, for Software development in windows, along with very small demo projects in VC++ for every APT and the reference manuals, they all comprise to make "Digilent Adept SDK".

So I quickly opened the DACI(UART) demo in Visual Studio 2015, in order to communicate with my board over UART, I was able to implement Device Table and get the device name string, I also managed to open the device using DmgrOpen() Funtion and got a interface handle, but i can't seem to get the DaciEnable() to work, and using the DmgrGetLastError tells me that the device(Nexys4-DDR) is not supported for DACI, which is very improbable.

Then in hopes of troubleshooting the problem, I check for DmgrGetDtpCount() and I get the value '1', which I think means that there's one way to communicate with the device(which is not very informative), then I try DaciGetPortCount() which returns the value '0' to the pointer variable, which I think implies that there are NO DACI ports, :(.

But I can see that while debugging the code, during the DmgrOpen() Function call, VS loads two FTDI dlls, I'm stuck here for a while now.

And I hope that this question interests the experts at Digilent Forums, for I think they can see through this problem easily.

And I attached the cpp file, which I'm working on.

Thanks a lot !!

DaciDemo_modified.cpp

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Please, point me to something, is my question incomprehensible ?

I just don't understand why nobody is replying !

Additional Info :

When I run the Get Device Info Demo, I see that there is only one device capability, which is JTAG only, I attached a pic of the result, I just want to know why is it so ??

I have the baudrate matched in the DACI API to the FTDI USB-UART Port to 115200.

And I'm able to communicate with the board using a serial terminal, if I program my board with simple VHDL UART module in loopback mode, but i can't seem to make any progress using the API DACI.

 

digilent.png

Link to comment
Share on other sites

Hello,

First of all, Nexys4-DDR is not supported and that’s why DaciGetPortCount() returns a value of 0.

In general the only APT that our FPGA boards support is JTAG, which is used to configure the FPGA.

Most people just use a terminal to communicate with the serial port. 

If someone whose using the Adept SDK wants to see which APT’s are supported then they can do something similar to the following:

HIF hif;
DCAP dcap;
DVC dvc;

// open device
DmgrOpen(&hif, szDevName);
DmgrGetDvcFromHif(hif, &dvc);
DmgrGetInfo(&dvc, dinfoDCAP, &dcap); // query capabilities from device

// At this point you can test to see if the device supports a particular APT like this:
// Please note that the dcapJtg and other constants are defined in dpcdecl.h

if ( dcapJtg & dcap ) {
                printf("device supports DJTG\n");
}

if ( dcapAci & dcap ) {
                printf("device supports DACI\n");
}

 

Sergiu

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...