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.

AM3357: ethercat使用中断就报错

Part Number: AM3357
Other Parts Discussed in Thread: TPL5010

利用am3357做EtherCAT从站开发,使用的软件版本:PRU-ICSS-EtherCAT_Slave_01.00.08.01, processor_sdk_rtos_am335x_6_03_00_106, pdk_am335x_1_0_17

在加入看门狗(硬件使用TPL5010芯片)驱动,如果配置用中断方式获得TPL5010芯片的WAKE信号引脚的电平变化,则用TwinCAT做主站测试就会发现ethercat状态切换超时的问题;改用轮询方式,则工作正常。仔细检查了硬件和软件对该引脚的使用,没有在其他地方被占用。

另外,对spi 1上挂的器件开了中断的话,同样会遇到ethercat初始化时状态切换失败的问题。目前的状况就是,一旦使用了中断,ethercat通信就会出问题;关闭中断,改用其他方式比如轮询,则工作正常。

因此,请问一下,如果要使用中断,需要注意什么才不至于影响ethercat通信?