Ethercat compatible Encoder board tentative STM32F4 + LAN9252

More
10 months 2 weeks ago #340016 by vibram
Thank you,
some little progress made, everything compile, run LED is blinking in the LAN9252 board, but I-m not in OP mode yet:
What worries me is that I can still see the original configuration with available switches in Twincat
This means the EEPROM is not flashed correctly I guess?

Please Log in or Create an account to join the conversation.

More
10 months 2 weeks ago - 10 months 2 weeks ago #340023 by Hakan
Indeed, the old config.
You remember there is a procedure around that.
Copy xml file to config\io\ethercat somewhere (similar)
restart twincat to have it read in new config, scan for devices,
free run mode on, program eeprom, remove device, scan for devices
and with some luck the new config is there. Something like that.
I had it in one if my first youtube videos about ethercat.

Edit.
Upload xml file to C:\TwinCAT\3.1\Config\Io\EtherCAT and restart TwinCAT
 

Jump to 10:04 and follow the steps


 
Last edit: 10 months 2 weeks ago by Hakan.
The following user(s) said Thank You: vibram

Please Log in or Create an account to join the conversation.

More
10 months 2 weeks ago - 10 months 2 weeks ago #340047 by vibram
OK thank you i wil ltry
Last edit: 10 months 2 weeks ago by vibram.

Please Log in or Create an account to join the conversation.

More
10 months 2 weeks ago #340048 by vibram
some little progress made, I managed to flash the EEPROM, the name of the device changed and I don't see the input/output anymore.
However, I m not able to pass the INIT step

Please Log in or Create an account to join the conversation.

More
10 months 2 weeks ago #340063 by Hakan
Are you sure spi works?
Apart from that, make sure the stm32 and the eeprom are in sync, that is, they both come from the same saving of "Save all files"
and that the firmware is compiled and downloaded. It doesn't hurt to do it one more time.
Power cycle the board to make sure both stm32 and lan9252 read the most recent data.
Right-click the mouse on the marked item and remove it. Scan for new boxes to make it reappear.
Also quit Twincat and start it.
All a bit extra cautious to make sure any old data/cache is eliminated.
 

Please Log in or Create an account to join the conversation.

More
10 months 2 weeks ago #340089 by vibram
I managed to get spi working but I might have an issue with the eeprom. Apparently I'm stuck in PDI mode and lan9252 is not communicating through spi

Please Log in or Create an account to join the conversation.

Time to create page: 0.400 seconds
Powered by Kunena Forum