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.

PROCESSOR-SDK-AM64X: am64x Sciclient_init fake success.

Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: TMDS64EVM

Tool/software:

Hi, 

I am running tmds64evm.

I am using mcu_plus_sdk_am64x_11_00_00_15. I am reviwing ti sdk code. 

question,  in sciclient.c 

<code>


int32_t Sciclient_init(uint32_t coreId)
{
    int32_t   status = SystemP_SUCCESS;

    /* convert system address to CPU local address */
    gSciclientSecProxyCfg.pSecProxyRegs
        = (CSL_sec_proxyRegs*)AddrTranslateP_getLocalAddr( (uint64_t)gSciclientSecProxyCfg.pSecProxyRegs);
    gSciclientSecProxyCfg.pSecProxyScfgRegs
        = (CSL_sec_proxy_scfgRegs*)AddrTranslateP_getLocalAddr( (uint64_t)gSciclientSecProxyCfg.pSecProxyScfgRegs);
    gSciclientSecProxyCfg.pSecProxyRtRegs
        = (CSL_sec_proxy_rtRegs*)AddrTranslateP_getLocalAddr( (uint64_t)gSciclientSecProxyCfg.pSecProxyRtRegs);
    gSciclientSecProxyCfg.proxyTargetAddr
        = (uint64_t)AddrTranslateP_getLocalAddr( (uint64_t)gSciclientSecProxyCfg.proxyTargetAddr);

    gSciclientHandle.currSeqId = 0;
    gSciclientHandle.coreId = coreId;
    gSciclientHandle.devIdCore = Sciclient_getDevId(coreId);
    gSciclientHandle.secureContextId = Sciclient_getContext(SCICLIENT_SECURE_CONTEXT, coreId);
    gSciclientHandle.nonSecureContextId = Sciclient_getContext(SCICLIENT_NON_SECURE_CONTEXT, coreId);
    gSciclientHandle.maxMsgSizeBytes = CSL_secProxyGetMaxMsgSize(&gSciclientSecProxyCfg) -
                                CSL_SEC_PROXY_RSVD_MSG_BYTES;

    return status;
}

</code>


In  Sciclient_init, the status is a fake status right, since it always true?   should the function instead a void ?


Thanks.