This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCU-PLUS-SDK-AM243X: AM243x-LP

Part Number: MCU-PLUS-SDK-AM243X


Tool/software:

I am switching from TwinCAT to real EtherCAT master. I am trying to connect master to two sitara AM243x-LP boards and I am trying to switching from pre-op to op.

However, I am repeatedly seeing state transition to 0x12. This is not a standard value for init, pre-op, safet-op, nor op. Could you help me interpret what 0x12 means?

Attachment.


  • Hi, I could not find documentation about the return value of this API: extern ECATSLV_API uint32_t EC_API_SLV_getState(
    EC_API_SLV_SHandle_t* pHandle,
    EC_API_SLV_EEsmState_t* pState,
    uint16_t* pAlErrorCode);

    *pState was 0x12 above. * pAlErrorCode is 0x1e.   Could anyone interpret the values or guide me to the documentation? 
    EC_API_SLV_getState() itself returned with EC_API_eERR_NONE.

    Thank you.

  •  Hi Jinlong, I've redirected this thread to the Stack team. Meanwhile, can you provide the value you see in ESC Register AL STATUS CODE (0x0134).

    Regards,
    Aaron

  • I think the register you have asked for has value 0x1e - see EC_API_SLV_getState().

    After last post, I did some search. It is this:
    #define ALSTATUSCODE_INVALIDSMINCFG 0x001E
    Invalid Input Configuration.

  • Hello Jinlong Shen,

    The ESM state 0x02 is representing Pre-op state and the state 0x12 is representing error flag + pre-op state.

    The AL_STATUS_CODE=0x1E is representing the Invalid Input Configuration and the problem seems to be in Process Data Sync-Manager settings. Function which checks the Sync-Manager settings like address, length, flags etc. returns this error status code. Please check the SM configurations that EtherCAT master is trying to achieve.


    Kind Regards,