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.

question about 6678 RTC

Hi all,

I know 6678 can run linux.

My question is following:

Q1: As we known,linux is a real-time System,

so if it can run on 6678, What support RTC.

I guess Maybe it is a timer(choose timer 0~15)  support to linux.

Q2:If I want to achieve a RTC,but not use external RTC or BIOS API,How to do it.

I think i need choose a timer(internal timer 0~15),and use it as GP timer.is it right?

Thanks,

Li

  • xiang_li said:

    Q2:If I want to achieve a RTC,but not use external RTC or BIOS API,How to do it.

    I think i need choose a timer(internal timer 0~15),and use it as GP timer.is it right?

    In my applications, without BIOS I use the Timer N (where N is the core number) to generate a RTC indipendent for each core (but You can use a shared timer for all the cores if you want).

    You can easly access the timer with the CSL: look at examples in <your-ccs-dir>\pdk_C6678_1_0_0_12\packages\ti\csl\example\timer.

  • Hi Alberto,

    Thanks your reply.

    Yes,you are right.

    Use a gp timer can implement my aim.

    Addition, I just finish a watchdog timer, But the examples maybe have some wrong about watchdog timer.

    Have you seen it?

    Best Regards,

    Li

  • xiang_li said:

    Addition, I just finish a watchdog timer, But the examples maybe have some wrong about watchdog timer.

    Have you seen it?

    Sorry, I have never used the watchdog timer, neither looked at the example.

    By the way, about your Q1: as far as I know standard linux is not a real-time operating system, but exists patch to make it real-time.

    Event if not real-time, it surely use a clock. I suppose it is provided by SYS/BIOS using the GP timers but I don't know if the C66 linux itself can be considered real-time