Forum Discussion
Altera_Forum
Honored Contributor
15 years agohostpc like send data to nios II via jtag (nios2-terminal.exe, jtag_atlantis.dll)
hi! my system: cyclone 3 starter kit quartus 2 - 9.1 ( licence + nios licence) nios 2 system working goal: i want to setup a matlab gui to switch some pio outputs of the nios. with it...
Altera_Forum
Honored Contributor
15 years agoOk, so I finally got my Matlab license sorted out and have been able to replicate your results. I got it working with Quartus 11.0 and Matlab 2009a by doing this:
1) Modify your path as follows (I wrote a batch file which does this then runs matlab.exe)PATH=%PATH%;d:\altera\11.0\quartus\bin\2) Add the following lines to <matlab>\toolbox\local\classpath.txt: ### Added for SystemConsole matlabapi
d:/altera/11.0/quartus/sopc_builder/model/lib/com.altera.systemconsole.matlabapi.jar
d:/altera/11.0/quartus/sopc_builder/model/lib/com.altera.service.jre.jar
d:/altera/11.0/quartus/sopc_builder/model/lib/com.altera.utilities.jar
d:/altera/11.0/quartus/sopc_builder/model/lib/com.altera.systemconsole.plugin.jtag.jar
d:/altera/11.0/quartus/sopc_builder/model/lib/com.altera.systemconsole.usb.jar# ## End classpaths added for SystemConsole matlabapi 3) Added the following lines to <matlab>\toolbox\local\librarypath.txt:### Added for SystemConsole matlabapi
d:/altera/11.0/quartus/sopc_builder/model/lib
d:/altera/11.0/quartus/bin# ## End of paths added for SystemConsole matlabapi 4) Ran matlab, then the following commands: L1 = com.altera.systemconsole.matlabapi.SystemConsoleLink
L1.executeTcl('get_service_paths master')
M1 = L1.masterOpen('/connections/...paths.../master')
M1.masterRead32(0, 16) Good luck.