Hi
Last week I started porting Helix mp3 decoder to FreeRTOS enviroment and I stuck on DMA1_Stream7_IRQHandler. Inside the interrupr routine I release transmission complete semaphore by xSemaphoreGiveFromISR (xSemaphoreTC, &xHigherPriorityTaskWoken). Calling of this function causes permanent stuck inside vPortValidateInterruptPriority( void ). I know the problem is related to the priorities, but i can’t solve it by myself. Is there any helping hand? By the way, i’m rookie to FreeRTOS.
which is using an unshifted priority value (the priority bits are
already set in the most significant bits) - whereas you probably need to
use an unshifted value (whereas the priority bits are set in the least
significant bits). See the following link for more details:
DMA1_Stream7_IRQHandler
In this handler it would be more efficient to use a direct to task
notification than a semaphore.
I’m not sure what more I can say over what I already mentioned in my
last email as I have already pointed out the line in your code that I
think is wrong. Perhaps you should grep NVIC_InitTypeDef in the
FreeRTOS/demo directory to see examples of how the structure is being
used (be careful to see how the FreeRTOS code is actually using it,
rather than uses within the ST code itself).
Heh, the most confusing thing is that I have the same mechanism used in my previus project. The diference is is only in peripherials, where data was transferred form ADC to ram buffer.
Mea culpa… I had incorrectly defined parameters configKERNEL_INTERRUPT_PRIORITY and configMAX_SYSCALL_INTERRUPT_PRIORITY in FreeRTOSConfig.h.
Thank you very much for help! I’m tired of this and I read without understanding the content…
Finally everything work ok.