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.

Request/suggest example for SYSBIOS Startup module documentation

Other Parts Discussed in Thread: SYSBIOS

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:

The following code fragment shows how to add the externally defined function CopyHwiDispatcherToRam() to this array.
      var Startup = xdc.useModule('xdc.runtime.Startup');
      Startup.firstFxns[Startup.firstFxns.length++] = "&CopyHwiDispatcherToRam";
  • Hi Brandon,

    The SYS/BIOS BIOS module cdoc has some example code covering firstFxns and lastFxns.

    http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/6_35_03_47/exports/bios_6_35_03_47/docs/cdoc/ti/sysbios/BIOS.html#xdoc-desc

    The xdc.runtime.Startup module is part of XDC Tools product. I have filed a bug against XDC runtime requesting a new example in the startup module's cdoc.

    Bug link: https://bugs.eclipse.org/bugs/show_bug.cgi?id=415178

    Best,

    Ashish