SPRACY6 July 2021 DRA821U , DRA821U-Q1 , DRA829J , DRA829V , DRA829V-Q1 , TDA4VM , TDA4VM-Q1
Below is the example of where we put the TISCI client registration (Board_sysInit()) in AUTOSAR.
void Brs_PreMainStartup(void)
{
uint32 coreID;
/* Relocate Vectors to ATCM, Please refer to Other Topics in this doc */
memcpy((void *)0, (void *)_OS_EXCVEC_CORE0_CODE_START, _OS_EXCVEC_CORE0_CODE_LIMIT);
/* some code are not shown here */
Board_sysInit();
main();
}
Where Board_sysInit() can be defined by taking reference from the implementation at $J7SDK/ti-processor-sdk-rtos-j721e-evm-xx_xx_xx_xx/pdk_jacinto_xx_xx_xx_xx/packages/ti/board/src/j721e_evm/board_init.c functionBoard_sysInit() and PDK’s public GIT here.
static int Board_sysInit(void)
{
int status = 0;
int ret;
Sciclient_ConfigPrms_t config;
if(gBoardSysInitDone == 0)
{
Sciclient_configPrmsInit(&config);
ret = Sciclient_init(&config);
if(ret != 0)
{
status = -1;
}
if(status == 0)
{
gBoardSysInitDone = 1;
}
}
return status;
}