SPRACY6 July 2021 DRA821U , DRA821U-Q1 , DRA829J , DRA829V , DRA829V-Q1 , TDA4VM , TDA4VM-Q1
The code snippet gives an example implementation of the SciClient and SciServer initialization.
sint32 SetupSciServer(void)
{
#if (defined (BUILD_MCU1_0) && (defined (SOC_J721E) || defined (SOC_J7200)))
Sciserver_TirtosCfgPrms_t appPrms;
Sciclient_ConfigPrms_t clientPrms;
sint32 ret = CSL_PASS;
appPrms.taskPriority[SCISERVER_TASK_USER_LO] = 1;
appPrms.taskPriority[SCISERVER_TASK_USER_HI] = 4;
/* Sciclient needs to be initialized before Sciserver. Sciserver depends on
* Sciclient API to execute message forwarding */
ret = Sciclient_configPrmsInit(&clientPrms);
if (ret == CSL_PASS)
{
ret = Sciclient_init(&clientPrms);
}
if (ret == CSL_PASS)
{
ret = Sciserver_tirtosInit(&appPrms);
}
if (ret == CSL_PASS)
{
AppUtils_Printf(MSG_NORMAL, "Starting Sciserver..... PASSED\n");
}
else
{
AppUtils_Printf(MSG_NORMAL, "Starting Sciserver..... FAILED\n");
}
#endif
return ret;
}
Example code for Sciserver_tirtosInit() can be found in $J7SDK/ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx/pdk_jacinto_xx_xx_xx_xx/packages/ti/drv/sciclient/src/sciserver/sciserver_tirtos.c in PDK’s public GIT here.