This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Code Composer Studio
您好!
我在将 Doorbel 从 DSP 发送到 FPGA 时遇到问题(FPGA 处于 TX 模式、DSP 处于 RX 模式)。 我通过 SRIO DIO 通信使用 C6670和 Xilinx K7。
当 FPGA 在 DSP 存储器中写入数据时、会将门铃发送到 DSP。 Doorbell 在 DSP 上生成 ISR。 门铃编号表示缓冲区数据已被处理的 DSP。 当 DSP 读取数据时、它会将门铃发送到 FPGA、从而允许 FPGA 将新数据写入 DSP 存储器。 我在这里有问题。 有时 FPGA 未接收到来自 DSP 的门铃。 DSP 发送门铃、因为 SRIO_sockSend_Dio 的后向代码为0。 发生此事件后、DSP 和 FPGA 之间的通信停止、因为 FPGA 正在等待来自 DSP 的门铃。
我正在使用:
SRIO_sockSend_DIO (hSrioSock、(SRIO_DrvBuffer*) dbel、16、(SRIO_SockAddrInfo*)&toDoorbell)
其中:
Dbel = SRIO_SET_DBELL_INFO (3、1);
toDoorBell.dio.rapidIOMSB = 0x0;
toDoorBell.dio.rapidIOLSB = 0x0;
toDoorBell.dio.dstID = device_ID2_16BIT;
toDoorBell.dio.ttype = SRIO_Ttype_DoorBell_default;
toDoorBell.dio.ftype = SRIO_FTYPE_Doorbell;
将门铃发送到 FPGA 的方法。
检查门铃是否真正发送到 FPGA 的方法是什么?
谢谢、
Lukasz。
您好、Garrett、
我创建了非阻塞套接字。 我将进行检查。
谢谢。
此致、
Lukasz。
您好、Garrett、
感谢你的帮助。 我解决了问题。 问题在于任务的优先级。 我之前采用了错误恢复。 在没有错误恢复的情况下、SRIO 传输被停止约4秒。 此时、DSP 和 FPGA 之间的 SRIO 内部恢复链路、
此致、
Lukasz。