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.
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 ?
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:
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.