2012-11-28 07:01 AM
Hi,
I'm trying to run FreeRTOS in my STM32F2xx application built with yagarto.Does anyone have a working reference project for such case?Actually I manage to build it but is tuck somewhere in scheduler. I'm not sure what peripheral initialization is required for scheduler to work? #freertos2012-11-28 07:33 AM
I have a port in Keil. As far as initialization CMSIS sets up the HSE/PLL, and then I turn on all the GPIO clocks in prvSetupHardware(), along with the NVIC priority, and SysTick configuration. Other Timers and Interrupts are set up elsewhere.
2012-11-29 11:29 AM
OK.
I've manged to run FreeRTOS in my project. I had to go over Free RTOS source and look at some STM32F1xx examples. Bottom line I was missing SysTick configuration and I had to connect 2 interrupt handlers provided by FreeRTOS to SysTick and SVC vectors in startup.s file where vector tables are defined. As one who had written my own OS for AVR I must say that I like the FreeRTOS. It is really a piece of code that worth to look at.2012-11-29 11:29 AM
OK.
I've manged to run FreeRTOS in my project. I had to go over Free RTOS source and look at some STM32F1xx examples. Bottom line I was missing SysTick configuration and I had to connect 2 interrupt handlers provided by FreeRTOS to SysTick and SVC vectors in startup.s file where vector tables are defined. As one who had written my own OS for AVR I must say that I like the FreeRTOS. It is really a piece of code that worth to look at.2012-12-04 02:56 AM
http://www.freertos.org/FAQHelp.html
(see FAQ #1 on that page)http://www.freertos.org/Creating-a-new-FreeRTOS-project.html
There are lots of examples that show how to create tasks and start the scheduler from that point.