Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LAN9252 stay in INIT mode #5

Open
FCam1 opened this issue Sep 12, 2019 · 2 comments
Open

LAN9252 stay in INIT mode #5

FCam1 opened this issue Sep 12, 2019 · 2 comments

Comments

@FCam1
Copy link

FCam1 commented Sep 12, 2019

Hi,
Now my device is reconized as a slave in twincat but is blocked in the INIT state, when I try to force the device to the next state "Pre-Op" I have this error : INIT INIT_ERR.

I flashed the stm32 and I can see the same issue. The code still blocked in middleSOESInit() waiting OP mode :
do{ ESC_read(ESCREG_DLSTATUS, (void *)&ESCvar.DLstatus, sizeof(ESCvar.DLstatus)); //ESCvar.DLstatus = etohs(ESCvar.DLstatus); } while ((ESCvar.DLstatus & 0x0001) == 0);

Nothing is connected on the GPIO, the board is connected alone.

The connection between the EEPROM seems right because is reconized as a slave in twincat.

Do you have an idea of the possible cause of this issue ? Thanks

Florenc

@FCam1 FCam1 changed the title LAN9252 State LAN9252 stay in INIT mode Sep 12, 2019
@FCam1
Copy link
Author

FCam1 commented Sep 19, 2019

I found an other ESI file from mivrochip (Microchip EVB-LAN9252-Add-On-DIGIO-8IN-8OUT.xml) and with this config the LAN9252 go in OP mode without any problem. With this test I think I can validate my hardware is ok but I don't understant with your ESI file is not working on my board.

@FCam1
Copy link
Author

FCam1 commented Oct 8, 2019

Finally I found an alternative. I succeed to do your harware working using arduino and easyCAT : https://github.com/Gepetto/DieBieSlaveduino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant