I’m trying to create a SOES slave using a LAN9252 chip. For testing purposes, I used a very simple script, with only the ecat_slv_init() function in the main and the ecat_slv() function in a while loop.
When I flash this script using STM32CubeIDE, everything works as intended. The EtherCAT master shows that the state transitions from INIT to OP. However, when I flash this using VSCode and OpenOCD, the EtherCAT master doesn’t show that the slave is in a certain state. While going through the code with a debugger, the debugger goes through the ecat_slv_init() function and enters the while loop with ecat_slv().
Could someone help me with this issue?
Hello,
I’m trying to create a SOES slave using a LAN9252 chip. For testing purposes, I used a very simple script, with only the ecat_slv_init() function in the main and the ecat_slv() function in a while loop. When I flash this script using STM32CubeIDE, everything works as intended. The EtherCAT master shows that the state transitions from INIT to OP. However, when I flash this using VSCode and OpenOCD, the EtherCAT master doesn’t show that the slave is in a certain state. While going through the code with a debugger, the debugger goes through the ecat_slv_init() function and enters the while loop with ecat_slv(). Could someone help me with this issue?