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.

AM335x作为EtherCAT从站,不能被主站扫描到

Other Parts Discussed in Thread: SYSBIOS

   Hi,

      我们的板用的pru1_mii0_txd的pins和am335x icev2的不一样,用的从站例程是am335x_sysbios_ind_sdk_1.1.0.8\sdk\examples\ethercat_slave,已经在程序中将pru1_mii0的pins都修改正确,但是使用 icev2作为主站连接我们的板时,显示扫描不到从站。使用EC-Engineer也扫描不到。另外,我们的板在跑Linux系统时,pru1_mii0是能正常工作的。

      1. 要跑ethercat_slave例程的话,请问还要其他地方要修改的吗?

      2. ecat_frame_handler_bin.h、ecat_host_interface_bin.h 这些固件在am335x通用的吗?

  • 如果只是改pinmux的设置的,理论上应该不会出现其他问题。你确定你的pinmux的设计在EtherCAT的例程中都改过来并且正常生效了吗?可以通过回读control_module寄存器值的方式来进行确认。

    另外需要注意的一点是,在你修改后的pinmux设置中是否排查过有无存在pinmux的io violation 情况?使用pinmux工具来进行配置即可排查。

  • Dear Liu,

    我们使用的pinmux如图:

    回读过control_module,确认都pinmux配置正确了。

    另外,我发现程序跑到pSlaveInterface = Ecat_Open(PD_INPUT_SIZE,PD_OUTPUT_SIZE);就不往下跑了,一直停在这里,不是为什么。(icev2的板可以成功运行这个函数)。

    在Ecat_Open()函数之前有个bsp_set_pru_firmware(),加载pru固件的,是否是固件加载没成功?