CCS v5.40
ControlSuite v3.21
Compiler version TI 6.1.3
SYSBIOS v6.35.3.47
XDCTools v3.25.2.70
Device : TMS320F28069
I have a need for adding a hook for an initialization routine before main() is called. I added the Startup module from SYSBIOS into my configuration. Unfortunately, for some reason the text boxes for the "Functions Called Before Module Initialization" were all greyed out. I wanted to circumvent this by modifying the cfg script directly, but the cdoc for SYSBIOS.Startup module didn't have an example.
There was an example for the SYSBIOS.Reset module, which I used to model from.
I would recommend an example in the cdoc documentation for SYSBIOS.Startup module that is something like the below:
var Startup = xdc.useModule('xdc.runtime.Startup');
Startup.firstFxns[Startup.firstFxns.length++] = "&CopyHwiDispatcherToRam";