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.

Task_sleep RTC

Other Parts Discussed in Thread: TM4C1294NCPDT, SYSBIOS

Good day,

I am using TI-RTOS  with TM4C1294NCPDT and I have a problem with Task_sleep.

Sometimes it remains hang-up.

In our application we do not have a RTC (32.768-KHz external clock) .

Do you think this can be the cause?

Regards

Horea

  • Hello Horea,

    I am not an expert with TI-RTOS so I have asked that one of our experts take a look at your post. They should be getting back with you soon.
  • Hello Horea,

    According to SYS/BIOS documentation, Task_sleep and other SYS/BIOS APIs with timeout parameters should not be called if the "tickSource" is set to "Clock.tickSource_NULL". By default the "tickSource" is set to "Clock.tickSource_TIMER". Did you change this configuration?

    Task_sleep and other SYS/BIOS APIs with timeout parameters use system tick to interpret the timeout. Typically the system tick is based on a timer interrupt and the timer would run on system clock. So I don't see any relation between not using RTC and Task_sleep error.

    Could the reason for the hang be that the timeout condition was not met?

    Thanks,
    Sai
  • The fix for error is:
    1. Do not use sprintf.
    2. Configuration file\SYSBIOS\Scheduling\Clock: TickMode=Interrupt every period; TimeId=7 (should be different by ANY).