tlc_init() does not allow to pass the userRef for the debugging output routine. The parameter for vos_init() is NULL.
Either the API should to be changed to
TRDP_ERR_T tlc_init (
const TRDP_PRINT_DBG_T pPrintDebugString,
void dbgUserRef,
const TRDP_MEM_CONFIG_T pMemConfig);
or the userRef value for the debugging output should be removed.
userRef -> pRefCon