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

ARM RTOS help required urgent

hello friends
i have written the code for ARM RTOS, i have used same priority for all of my 4 task, its working fine

my problem is when i change the priority in the code then all task's are not executing simultaneously....
please any one help

Parents Reply Children
  • its solved
    i was again waiting their using wait flag it was not occurring
    just i removed that
    i.e.

    __task void task1 (void){
      /* Obtain own system task identification number */
      id1 = os_tsk_self();
      os_tsk_prio_self(1);
    
      /* Create task2 and obtain its task identification number */
      id2 = os_tsk_create (task2, 2);
    
      for (;;) {
    
        buzzer();/*
            os_evt_set(0x0002,id2);
        /* Signal to task2 that task1 has compelted */
    
    
        /* Wait for 50 ms before restarting task1 activity. */
       // os_dly_wait(5);        //I COMMENTED THIS PART NOW IT IS SWITCHING PROPERLY
      }
    }