Failed to initialize the RTIOStream library during FPGA-in-the-loop simulation
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Bo Zhang
el 9 de Mzo. de 2016
Editada: emanuel Murillo
el 2 de Abr. de 2021
Hello, I tried to use HDL coder and HDL verifier to connect the matlab with my FPGA. I did the FPGA-in-the-loop simulation as the tutorial PID Controller, but during simulation, it prompted 'Failed to initialize the RTIOStream library'. How can I solve this problem?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157199/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157201/image.png)
I use JTAG to connect my FPGA board. I pass the FPGA Turnkey test and I am able to load my Verilog/VHDL code to the board and successfully run the program. However, it does not work when trying co-simulation with Simulink and FPGA.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157202/image.png)
Is the problem because that I only use JTAG for connection? Do I need to use Ethernet for connection as well?
Hope anyone can help me. Thanks a lot!
0 comentarios
Respuesta aceptada
Tao Jia
el 10 de Mzo. de 2016
When you test the board, you need to check "include FPGA Board in the test" checkbox to do a full test. Otherwise, it will not try to run the simulation.
When you get error message "Failed to initialize the RTIOStream library" in simulation, can you tell if there's error message printed at the MATLAB console at the same time? Sometimes the error message is printed there.
It would be helpful if you can provide more information regarding your FPGA board.
2 comentarios
Vaheda
el 28 de Nov. de 2016
Editada: Vaheda
el 28 de Nov. de 2016
Hello, I am also getting the same error message "Failed to initialize the RTIOStream library" in simulation. In this case, on the MATLAB console, getting message "Did not find any Digilent® JTAG cable. Make sure that the cable is connected to your computer". But the JTAG is connected to the board through the PC. Then what causes this error to come?? Hope anyone help to solve this. Thanks in advance
shengyi ji
el 14 de Jun. de 2017
Hello, I am also getting the same error message .Has it been solved?
Más respuestas (3)
emanuel Murillo
el 1 de Abr. de 2021
Editada: emanuel Murillo
el 2 de Abr. de 2021
I just solved it! If someone still has this problem, here is the solution.
This is only for JTAG Connection:
Open filWizard and launch Board Manager, select the board that you will use and clone it.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/569979/image.png)
Then edit the copy that you just made. Remove the ethernet interface from the list.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/569984/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/569989/image.png)
Not sure what is the real issue , but I think that is due the ethernet interface call a the RTIOStream library, I found out that is for establish tcp communication.
You can try to modify the clock frecuency and pin number as indicated by user manual, I did this and works as well.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/569994/image.png)
English is not my first language, so I beg your pardon for any mistake.
0 comentarios
Werner Bachhuber
el 31 de Ag. de 2017
I recently came across the same error message "Failed to initialize the RTIOStream library" with FPGA-in-the-Loop (JTAG mode) after successfully programming the bitstream via JTAG. In my case it could be solved updating the FTDI driver on the Windows computer. Please make sure that you have a recent version of the driver installed (FTDI version 2.12.24.0 from 09/28/16 or later). Hope that helps.
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!