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.

IDL and clock module problems in SYS/BIOS

Expert 1115 points
Other Parts Discussed in Thread: SYSBIOS

Hello friends,

I am using IDL function to blink LED at certain period and a clock module to run periodically. I have ARM9/OMAPL!38 SOM, CCSv4.2.4 (default sysBIOS/IPC). 

I have two issues here,

1.  LED blink rate too low for the same count value compared with DSP.

2.  There seems to be conflict between clock module and IDL when both are used.  There is no output in ARM9_CIO . The timer seems to be running as evident from ROV/Clock. But the string is getting displayed on the console.

How to resolve these two?

FYI: ROV and portion of the code is shown here.

==============================ROV==================

0xc3014020,ti.sysbios.knl.Clock@c3014020,5,5,clk0Fxn,0x00000000,true,4,true

,0xc3014048,ti.sysbios.knl.Clock@c3014048,5,5,clk0Fxn,0x00000000,true,4,true
======================================================

 

Void clk0Fxn(UArg arg0);

 ////   Main.c

Void main()

{

    I2C_init(I2C0, I2C_CLK_400K);                     // init I2C channel

      LED_init();      

   

    Clock_Handle clk2;  

    Clock_Handle clk1;   

    Clock_Params clkParams;

 

    /* Create a periodic Clock  */

    Clock_Params_init(&clkParams);

    clkParams.period = 5;

    clkParams.startFlag = TRUE;

    Clock_create(clk0Fxn, 5, &clkParams, NULL);

    clk1= Clock_create(clk0Fxn,5,&clkParams,NULL);

    Clock_start(clk1);

 

               

    BIOS_start();

}

 

/*

 *  ======== clk0Fxn =======

 */

Void clk0Fxn(UArg arg0)

{

    UInt32 time;

   

    time = Clock_getTicks();

    System_printf("System time in clk0Fxn = %lu\n", (ULong)time);

}

 

           

Void userfuntion(void)

{

// do some thing with peripherals

}

 Thank you in advance

With best regards

Pra