This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

os_tmr_create() doesn't work

I used os_tmr_create().
But, always return value is NULL!!
Why!!?

I saw os_tmr_create() defined in rt_Timer.c file.
There is the following codes in the first conditional expression.

if (tcnt == 0 || m_tmr == NULL) { return (NULL);
}

I think that the return value becomes NULL because "m_tmr" is NULL.
How can I set the value to "m_tmr"?

Someone helps.

Parents
  • Thank you response.

    I had started the RTX kernel before calling os_tmr_create() by using os_sys_init().
    The mailbox etc... operate in my project.
    I think that no problem the RTX kernel.
    But!!
    os_tmr_create() doesn't work!!

    my code is follows.

    tmr1 = os_tmr_create (10, 1);

    always return value is NULL!!
    tmr1 is 0x00000000.

    It is strange...

Reply
  • Thank you response.

    I had started the RTX kernel before calling os_tmr_create() by using os_sys_init().
    The mailbox etc... operate in my project.
    I think that no problem the RTX kernel.
    But!!
    os_tmr_create() doesn't work!!

    my code is follows.

    tmr1 = os_tmr_create (10, 1);

    always return value is NULL!!
    tmr1 is 0x00000000.

    It is strange...

Children