
Hello.Now I am working on the SPI communication between 28335 and EtherCAT -- LAN9252. The error reported on TwinCAT is as follows: the board of LAN9252 was welded by myself. Also, does the PORT0 of EtherCAT slave station have to be the input port? I connected PORT1 to my computer, my ESI file was burned successfully, and TwinCAT was able to scan the slave station information.What's the problem?Thanks.


您好,上图是我的SPI配置和SPI的读写函数,我自己检查了几遍,可能是由于我是初学者,没有查出什么问题,请问我的这个SPI配置的是否有问题?
此外,我的堆栈在CCS中的运行陷入了图片上的do_while的循环,程序运行时SPI的数据发送接受寄存器有改变且有值,但似乎不能向LAN9252的对应地址寄存器写值和读值,9252相关的程序是倍福SSC自动生成的,并无大的改动,请问您了解这个状况的原因吗?另外非常感谢您帮我反馈问题。