KSDK2 twrk64f120m demo_apps sai can't work with FreeRTOS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KSDK2 twrk64f120m demo_apps sai can't work with FreeRTOS

Jump to solution
563 Views
yangpingliao
Contributor I

I integrated the demo app from "KSDK2.0 boards\twrk64f120m\demo_apps\sai" with FreeRTOS by myself. Everything works well until I want to replace the callback function with a semaphore in the source file "sai.c". It seems to be the interrupt priority of which the FreeRTOS used is lower than the sai-edma transmission interrupt used. I already set the configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY to 1 in the file "FreeRTOSConfig.h". I can't find where to set the demo app's sai-edma transmission interrupt priority. Dose Anyone familiar with it? Thanks!

Labels (1)
0 Kudos
1 Solution
461 Views
yangpingliao
Contributor I

Finally I found the solution. Add this "NVIC_SetPriority(DMA0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);" before called EDMA_Init();

View solution in original post

0 Kudos
1 Reply
462 Views
yangpingliao
Contributor I

Finally I found the solution. Add this "NVIC_SetPriority(DMA0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY);" before called EDMA_Init();

0 Kudos