Hello,
i have the ethercat example running. On J12 the SPI0 is connected. I want to use this SPI0.
I saw in the Ethercat example code that SPI0 is using:
if (AM335X_BOARD_TYPE_ICE_V2 == boardType)
{
InitCpswIcssPorts(ICSS_SWITCH);
//McSPI instance 0 on ICE V2
SpiFlashInit(0);
}
else if( AM335X_BOARD_TYPE_ICE == boardType )
{
//McSPI instance 0 on ICE
SpiFlashInit(0);
}else
{
//McSPI instance 1 on IDK
SpiFlashInit(1);
}
Is this necessary for ethercat? If i commented SpiFlashInit(0); then it seems that TwinCAT can send and receive data via etherCat.
Regards,
Daniel