FreeRTOS 8.2.0 for ST stm32f103 device and IAR development system ST Library Question

matusalem wrote on Wednesday, March 25, 2015:

I have a problem with the demo project of FreeRTOS 8.2.0 for STM32F103 device contained in

The demo work fine with IAR IDE , and now I want to start editing the example
to evaluate freeRTOS functions.

Now I want to use dma functionality of STM32F103.

This device Has got two dma ,Dma1 and Dma2.

I have a problem with a ST Library file , infact stm32f10x_dma.c provides all the DMA firmware functions for DMA1 ,but DMA2 is not included.

it is possible that some library files may not be complete?

Thanks a lot

westmorelandeng wrote on Wednesday, March 25, 2015:


The demo code isn’t ‘complete’ wrt to an exhaustive set of drivers. With the data sheet and UG for the STM32F103 you should be able to ‘clone’ the DMA1 driver to make the DMA2 driver.

Some exercises are left to the student to complete. :wink:

John W.

rtel wrote on Wednesday, March 25, 2015:

Just to extend what John W says - the libraries are provided by ST themselves, and they will have a complete set of the the latest versions on their website. The drivers in the FreeRTOS distribution will be older, and probably only include the files used by the demo.

So this is not really a FreeRTOS question…


matusalem wrote on Wednesday, March 25, 2015:

Thank you for the answers.

Best Regards