Part Number: AM6442
Dear TI-Team,
According to the documentation (EtherCAT Slave: CiA 402 Example (ti.com)) the function EC_API_SLV_parseEsiFile should be called, but I cannot find it in the source code in ecSlvCiA402.c of the example.
EC_API_SLV_cbRegisterUserApplicationRun (pAppInstance_p->ptEcSlvApi, EC_SLV_APP_CIA_applicationRun, pAppInstance_p);
#endif
#if (defined GPIO_TEST_PINS) && (1==GPIO_TEST_PINS)
#if (defined GPIO_TEST_PROFILE_SEL) && (defined GPIO_TEST_PROFILE_2) && (GPIO_TEST_PROFILE_2 == GPIO_TEST_PROFILE_SEL)
EC_API_SLV_cbRegisterMeasurement(pAppInstance_p->ptEcSlvApi, EC_SLV_APP_measurement, pAppInstance_p);
#endif
#endif
error = (EC_API_EError_t)EC_API_SLV_init(pAppInstance_p->ptEcSlvApi);
if (error != EC_API_eERR_NONE)
{
OSAL_printf("Slave Init Error Code: 0x%08x\r\n", error);
/* @cppcheck_justify{misra-c2012-15.1} goto is used to assure single point of exit */
/* cppcheck-suppress misra-c2012-15.1 */
goto Exit;
}
EC_API_SLV_run(pAppInstance_p->ptEcSlvApi);Could you give me a hint?
Thanks and regards,
Jonas