Part Number: LP-AM243
Other Parts Discussed in Thread: TMDS64EVM
Tool/software:
Hello
I am using your LP-AM243 board to evaluate the EtherCAT Slave Stack
The SDK version is ind_comms_sdk_am243x_09_02_00_08
The sample project uses 401_simple from EtherCAT Slave.
I registered the callback function for registering the process data buffer and the user application callback function by referring to the Buffer Handling API chapter.
InputPD pre-read callback: appPreSeqInputPD()
OutputPD pre-write callback: appPreSeqOutputPD()
InputPD after loading callback: appPostSeqInputPD()
OutputPD after loading callback: appPostSeqOutputPD()
User application callback: EC_SLV_APP_SS_applicationRun()
When I performed a connection test with the master device in this state, I confirmed that the callback function I set was called.
However, even though the cycle time was set to 250us on the master,
the slave device's callback function was called at 1ms intervals.
Therefore, I would like to confirm the following two points.
- Since the various callback functions of the slave device are triggered by frame reception,is it correct that the various PDO callback functions are called at the same interval as the cycle time?
- If the understanding in 1 is correct, could you tell me how to call the callback function in sync with the cycle time?
As additional information, when I checked the frame transmission/reception interval using the master device's frame acquisition function,
it was possible to send and receive frames according to the cycle time setting, so it seems that only the callback function is not being called according to the cycle time.
I apologize for the inconvenience, and thank you for your help.