Part Number: AM2432
Hi experts,
1.Product Information: (1) The product supports dual network interfaces. The R5_0_0 core runs a 1ms CODESYS task, a 1ms EtherCAT Master task, and a 1ms EtherCAT Slave task, with priorities set at 26, 28, and 29 respectively. The simplified network topology is shown below.

(2) The 1ms CODESYS task transmits and receives data via UDP sockets, using a driver implemented based on the enet_cpsw_socket example.
2.Issue: When the EtherCAT Master successfully communicates with the slave, the lwip_sendto() function in the CODESYS task takes between 468us and 580us to complete one data transmission. However, when no successful communication occurs between the EtherCAT Master and the slave, lwip_sendto() requires only about 257us. Due to the relatively long execution time of lwip_sendto() within the socket, the 1ms CODESYS task experiences timing overrun issues.
3.Requirement: Is there any method to stabilize the lwip_sendto() execution time around 200us during normal master-slave communication? Or further reduce the execution time of lwip_sendto()?

SDK Version: 08_06_00_45
Reference Examples: enet_cpsw_socket, enet_layer2_cpsw
Historical information:



