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.

SYSBIOS V6 Clock Example not working on C6A816x EVM

Other Parts Discussed in Thread: SYSBIOS

Hi,

I'm trying to get the SYSBIOS V6 Clock example project  to run on a C6A816x EVM board. The project  demonstrates how to setup and use periodic and one-shot timer functions. The timer functions are not getting called - I'm not sure yet whether the clock HWI is happening.

I've ran this same clock example on the 6472 EVM platform. On this platform, the periodic function does get called.

There must be something I'm missing on the 816x EVM platform - maybe in the HW and/or SW configuration. I'm using the evm816x gel file from spectrum digital. Is there additional configuration that needs to be handled either in the gel file, or in my startup code to use the timer?

Thanks,
Jim
  • Hi Jim,

    Yes, the TI81xx family of devices (including C6A816x) requires the timers' power & clock initialization to be performed and SYS/BIOS doesn't (& can't) do this.  If you are running Linux on the A8, U-Boot should do this for you.  Otherwise, your EVM should be accompanied with a .gel script (i.e. evm816x)  that allows initializing the DMTimers to operate at 32Khz.

    FYI, the DSP uses timer #3 by default for the Clock module.  If the A8 is running BIOS, it will use timer #1. 

    Regards,

    Shreyas

     

  • Shreyas,

    I'm only running code on the DSP - nothing on the ARM side yet, so I enabled Timer 3  via a gel script.  After adding the following lines to the gel file, the timer started working.

        WR_MEM_32(CM_TIMER3_CLKSEL, 1);
        WR_MEM_32(CM_ALWON_TIMER_3_CLKCTRL,       2);
        while(RD_MEM_32(CM_ALWON_TIMER_3_CLKCTRL)!=0x2);  // Check Power is ON

    Thanks for the help, that solved my problem.

    Jim

  • Hi Shreyas,
       Could you help to provide an example code and document for non-CCS base?