I generated code for FreeRTOS with USB by STM32cube and I’m trying to use ADCs triggered by Timer3 and transfer data to memory by DMA2. There are only three FreeRTOS tasks sending messages to each other and sleeping most of the time. They are not communicating over USB and don’t access to hardware. Application is not using any ISRs (except USB). When ADC, DMA and Timer are initialized (it is not running yet), FreeRTOS after while crashes on
for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd );
I didn’t found any problem with stack overflow, priorities etc. as suggested on FreeRTOS help.
If I comment out initialization of ADC, DMA and Timer FreeRTOS goes well.
It seems like trouble with HAL, because similar application works perfectly with std-libraries before.
Do you have any ideas how ADC with DMA can break down FreeRTOS scheduler?