TSK_Create does not work consistently.. Sometines the task is executed and sometimes it does not.
My sample code is here
TSK_Handle demo_tsk;
// system initialization (doesn't rely on GEL)
// unlock device
LOCAL_kick_unlock();
// turn on uPP LPSC
LOCAL_PSC1_LPSC_enable(0, 19);
// enable uPP pinmux - enable all uPP pin functions
LOCAL_apply_upp_pinmux();
// enable HWI7 (tied to ECM block 2; see TCF)
C64_enableIER
(1 << 7);
// create task
demo_tsk = TSK_create(LOCAL_upp_demo,
NULL
, 0);
if (demo_tsk == NULL
)
LOG_printf(&trace,
"TSK_create() failed.\n"
);