OpenEtherCATsociety / SOES

Simple Open Source EtherCAT Slave
Other
578 stars 249 forks source link

Not passing from ESC_checkSM23 #74

Closed viniciusmiguel closed 4 years ago

viniciusmiguel commented 4 years ago

Hello. I'm implementing the lib on a STM32F4 using the LAN9252. I generated the EEPROM and source files using your plugin for eclipse.

I cannot change the state from PRE OP. Debugging the application i was able to identify the error is caused in the ESC_checkSM23 function. where this validation !(SM->ActESC & ESC_SM2_act) is causing the problem. the remaining validations: (etohs (SM->PSA) != ESC_SM2_sma) || (etohs (SM->Length) != ESCvar.ESC_SM2_sml) || (SM->Command != ESC_SM2_smc)` are correct.

I'm using TwinCAT to test my slave. Could you give a hint what could be the cause for ActESC to fail.

nakarlsson commented 4 years ago

What values do you have in SM->ActESC and ESC_SM2_ac?

nakarlsson commented 4 years ago

@viniciusmiguel: Can we close this?

nakarlsson commented 4 years ago

inactive