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.

LAUNCHXL-F28379D: Using Startup.firstFxns

Part Number: LAUNCHXL-F28379D

Hi,

I am trying to define some startup functions

I understand from the user guide example that I need to add below lines in .cfg file

var Startup = xdc.useModule('xdc.runtime.Startup');
Startup.firstFxns[Startup.firstFxns.length++] = '&myFirst';

and I have defined myFirst() function in my application

When I execute the code, it throws an error from Startup_exec()



and is unable to proceed beyond the below part

for (i = 0; i < Startup_firstFxns.length; i++) {
/* REQ_TAG(SYSBIOS-955) */
Startup_firstFxns.elem[i]();
}

Question:
Is there anything else that needs to be defined to use Startup functions?

Regards,
Rashmitha