2 Replies Latest reply on Jul 8, 2020 11:16 PM by YoIs_1298666

    AIRCR.PRIGROUP[2:0] value using FreeRTOS for PSoC6

    YoIs_1298666

      Hello,

       

      What is the setting value of AIRCR.PRIGROUP[2:0] using FreeRTOS?

      The result of reading the AIRCR register in the task was 0xFA050000.

      AIRCR.PRIGROUP[2:0] =000 ?

         volatile uint32 temp32;

         ...

         temp32 = SCB->AIRCR;

       

      The result of reading both NVIC_GetPriorityGrouping() and NVIC_GetPriority(SysTick_IRQn)was below.

              temp32 = NVIC_GetPriorityGrouping();

              temp32 = NVIC_GetPriority(SysTick_IRQn);

      result:  NVIC_GetPriorityGrouping()=0

                  NVIC_GetPriority(SysTick_IRQn)=7

       

      Best regards,

      Yocchi