Altera_Forum
Honored Contributor
13 years agoAccessing JTAG_UART from Matlab
Hi,
I am trying to build an interface between an FPGA (Quartus-II 64-bit v11.1sp2) and Matlab (R2011b) using the JTAG-UART. Unfortunately the documentation provided by Altera for their DLLs is very limited. I already found out that I should use the jtag_atlantic.dll, and also found the corresponding header file in thread 6146. However, if I use the Matlab command loadlibrary('C:\altera\11.1\quartus\bin64\jtag_atlantic.dll','C:\jtag_test\my_jtag_atlantic.h') I get the following error message: Warning: Warnings messages were produced while parsing. Check the functions you intend to use for correctness. Warning text can be viewed using: [notfound,warnings]=loadlibrary(...) > In loadlibrary at 347 Warning: The function 'jtagatlantic_open' was not found in the library > In loadlibrary at 402 Warning: The data type 'error' used by function jtagatlantic_get_error does not exist. > In loadlibrary at 402 Warning: The function 'jtagatlantic_get_error' was not found in the library > In loadlibrary at 402 Warning: The function 'jtagatlantic_close' was not found in the library > In loadlibrary at 402 Warning: The function 'jtagatlantic_write' was not found in the library > In loadlibrary at 402 Warning: The function 'jtagatlantic_flush' was not found in the library > In loadlibrary at 402 Warning: The function 'jtagatlantic_read' was not found in the library > In loadlibrary at 402 Warning: The function 'jtagatlantic_wait_open' was not found in the library > In loadlibrary at 402 Warning: The function 'jtagatlantic_cable_warning' was not found in the library > In loadlibrary at 402 Warning: The function 'jtagatlantic_get_info' was not found in the library > In loadlibrary at 402 If I use 'bin' instead of 'bin64', the error message is There was an error loading the library "C:\altera\11.1\quartus\bin\jtag_atlantic.dll" C:\altera\11.1\quartus\bin\jtag_atlantic.dll is not a valid Win32 application. Are the function names different in the 64-bit version of the jtag_atlantic.dll? It would be great if somebody would have a tip, what the problem is. Thanks a lot in advance.