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.

Warnings when running Bios 6 on C6747 Device Cycle Accurate Simulator

Other Parts Discussed in Thread: SYSBIOS

Hi

I am running a simple Hello World program in Bios 6 on the C6747 Device Cycle Accurate Simulator. My program is follows:

Void main()
{
    Task_Params params;       
   
    Task_Params_init(&params);
    params.priority = 5;
    params.stackSize = 1024;
    Task_create(mainTask, &params, NULL);
    BIOS_start ();
}

void mainTask(UArg arg0, UArg arg1)
{
    printf("hello world in task\n");
}

I'm using RTSC platform: 'ti.platforms.evm6747' and RTSC target: 'ti.target.C674'. The bios .cfg file used looks like this:

var Memory = xdc.useModule('xdc.runtime.Memory');
var BIOS = xdc.useModule('ti.sysbios.BIOS');
var Idle = xdc.useModule('ti.sysbios.knl.Idle');
var Task = xdc.useModule('ti.sysbios.knl.Task');
var HeapMem = xdc.useModule('ti.sysbios.heaps.HeapMem');

/* Create default heap and hook it into Memory */
var heapMemParams = new HeapMem.Params;
var heapMemParams = new HeapMem.Params;
heapMemParams.size = 8192;
var heap0 = HeapMem.create(heapMemParams);
Memory.defaultHeapInstance = heap0;

When I run the program I get the printout as expected, but the console also gets flooded by this warning:

"TMS320C64X+_0: Warning: CPU:Interrupt No. 4 dropped, an earlier interrupt is pending to be taken"

How can I get rid of this warning?

 

 

  • I have seen this warning appear as well in the simulator and it is a known issue that will be fixed in the next release of the simulators to CCS: SDSCM00037516 S2 ("Major sim 6x dropped interrupt check code should check (IER & IFR) before generating warning").

    I believe that the warning itself is harmless, so the easiest thing you can do is simply ignore it.  If you just can't bear it, there is a work-around that you can insert in to your source code that will make this go away:

    Add the following to your .c file:
       #include <ti/sysbios/family/c64p/Hwi.h>

    And add the following to your first line in main():
       Hwi_eventMap(4, 127);

    In addition, you will also need to add the following  to your .cfg script:

       var Event = xdc.useModule('ti.sysbios.family.c64p.Hwi');