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.

Sys/bios LIST module usage

Other Parts Discussed in Thread: SYSBIOS

Hi :

          I am  migrating my aplication from dspbios to sysbios .

 In *.cfg filE, The DDR memory segment contains the que object, written as

bios.QUE.OBJMEMSEG = prog.get("DDR");

How to create the same and assign it to the same memory segment  if i were to use the List module in sys/bios.

An example code showing the usage o flist in .cfg and.c file would be great help.

 

Aparna

  • Hi Aparna,

    The DSP/BIOS 5.x QUE module equivalent is the ti.sysbios.knl.Queue module in SYS/BIOS 6.x.

    The configuration code should be:

    var Queue = xdc.useModule('ti.sysbios.knl.Queue');

    // translate QUE.OBJMEMSEG = prod.get("DDR") ...
    Queue.common$.instanceSection = ".queStatic";
    Program.sectMap[".queStatic"] = "IRAM";

    Please note though that the above two lines will cause *statically* created Queue objects to be placed into a section called ".queStatic" (which will in turn be placed into the IRAM memory segment).

    If you create any Queue objects at run time, then these will be created from the default heap instance that's plugged into the Memory module.

    By default SYS/BIOS creates a HeapMem instance of size BIOS.heapSize.
     
    If you want that default heap placed in a particular section, you set that using BIOS.heapSection.

    Steve

  • Thanks Steve !

                                 I created a queue(static) in the *.cfg file just as you had suggested. But when i open the XGCONF viewer to view my applications's configuration i dont see the Queue module in the outline tab. Is there something that I am doing wrong ?

     

    Aparna

  • Aparma,

    You may need to close and re-open XGCONF.

    But, did you add an instance?  (the code I posted earlier only used the Queue module and specified where the instances should be stored into memory.  It didn't make any instances ...).

    I updated an existing *.cfg with the same code I posted for you. I'm able to see the Queue module: