Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freertos with Tc29x #1

Open
tccxy opened this issue Jul 7, 2020 · 0 comments
Open

Freertos with Tc29x #1

tccxy opened this issue Jul 7, 2020 · 0 comments

Comments

@tccxy
Copy link

tccxy commented Jul 7, 2020

Hi:
I use your code on my Tc297 development board,

void test_task1(void *pvParameters)
{
    char data_test[10] = {1};
    int n = 100000000, i;
    Ifx_print("test_task1\r\n");


    while (1)
    {
        IfxPort_setPinState(LED1, IfxPort_State_toggled);
        while (n--);
        n = 100000000;
        //vTaskDelay(1000);
    }
}

void test_task2(void *pvParameters)
{
    int n = 100000000, i;
    Ifx_print("test_task2\r\n");


    while (1)
    {
        IfxPort_setPinState(LED2, IfxPort_State_toggled);
        while (n--);
        n = 100000000;
        Ifx_print("test_task2\r\n");
        //vTaskDelay(1000);
    }
}

I found that the vTaskDelay is not valid, and once one task USES vTaskDelay, another task will not gain CPU time,
Do you know why? thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant