ucosiii with 3 task to display, only one task display unusual,

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • ucosiii with 3 task to display, only one task display unusual,

    I have a stm32f767 harware, have added ucosiii and stemwin suport with my board,and i mainly create 3 task to display some message with function GUI_DispStringAt(),the third task display is a little problem,

    C Source Code

    1. static voidAppTaskObj3 (void *p_arg){ OS_ERR os_err; (void) p_arg; static OS_MSG_SIZE msg_size; static uint64_t hole_ic_value; static char rstr3[64]; GUI_Init ();while (DEF_TRUE) { rpm_value = (int32_t *) OSQPend (&RPM_Q, 1000, OS_OPT_PEND_BLOCKING, &msg_size, NULL, &os_err); if (os_err == OS_ERR_NONE) { (*rpm_value) &= ~(3 << 30); hole_ic_value = (*rpm_value); hole_ic_value += *(rpm_value + 1); *rpm_value = hole_ic_value / 1000; sprintf ((char *) rstr3, "PWM:%dms", (int) (*rpm_value)); GUI_DispStringAt ((const char *) rstr, 400, 400); printf ("task1 %s &msg_size is %d\r\n", rstr, (int) msg_size); } APP_TRACE_INFO(("Object test task 1 running ....\r\n"));} }


    the display is unusual ,only display after task 2 displat position.eg
    in task2 ,i write code as

    C Source Code

    1. GUI_DispStringAt ((const char *) rstr2, 0, 0);

    task 3 display rstr3 message at 0,x(x==strlen(rstr2)),what's wrong maybe? 8o