thanhtam-h / soem-w5500-rpi

Realtime ethercat master for Raspberry pi
GNU General Public License v3.0
218 stars 87 forks source link

Can U add some delay for link? #6

Closed frankgp closed 5 years ago

frankgp commented 5 years ago

If I connected the RESET pin for W5500 from RPi3. always cannot findout the slaves.

Because the LINK-UP is slowly.

There are 2 slaves. 1-OMRON NX-ECC203 2-OMRON GX-MD1618

thanhtam-h commented 5 years ago

Did you try to increase EC_TIMEOUTRET3 in 'soem/ethercattype.h' and rebuild soem lib? Currently I set it to 200ms. So far I has tested with several drives like Maxon MAXPOS, Servotronix, Elmo Gold, Fastech Ezi,..

thanhtam-h commented 5 years ago

frankgp, I have updated driver file to add one more function:

int wiznet_hw_config(uint32_t spi_clkDiv, int startup_rst, uint32_t link_wait_us)

You now can control:

frankgp commented 5 years ago

Thanks a lot!
It's OK!

thanks again!