FreeRTOS on CooCOX IDE with STM32F103C8T6 minimal dev board

nikola1010 wrote on Friday, August 21, 2015:

Hi all,

just starting with STM32. I got STM32F103C8T6 minimal dev board from ebay and looking around found free CooCOX IDE.

Just as disclaimer I want to state that I am not connected with CooCox people in any way and only reason that I’ve started to use them was because they were free and as it seems the easiest way to go from 0 to blinky.

I’ve looked through all of the site learning and reading but I am unable to just make simple compilation of FreeRTOS on CooCox IDE.

Could someone provide samples or pointers on how to do it.
I wan’t to make it work so I can start learning FreeRTOS from working version (it is much easier when something just runs :slight_smile:

Thanks for help in advance.

rtel wrote on Saturday, August 22, 2015:

For a free Eclipse environemnt there is also the System Workbench option:

For a paid for Eclipse environment, with lots of simple FreeRTOS demos, there is Atollic:

I’m afraid we don’t have any pre-configured examples for that particular IDE, so you would have to create something.

Normally we created Ecipse projects by creating virtual folders that reference then build the FreeRTOS source code without moving the FreeRTOS soruce files from their standard position in the FreeRTOS distrubution. That can be complex, but only because of the way Eclipse works, FreeRTOS itself has very few source files. Creating virtual folders is described on the following link, but for now, I as an easier way of getting started, you might just want to copy the FreeRTOS files into your project directory:

The files you need are described on the following links:

Althoug using a completely different port, you could use the Eclipse version of the FreeRTOS windows port as a reference:

Rather than using the Win32 port files though, you will need either the files from the FreeRTOS/Source/Portable/GCC/ARM_CM3 folder, if your part is either Cortex-M3 or Cortex-M4 without an FPU, or the files from the FreeRTOS/Source/Portable/ARM_CM4F folder if your part is Cortex-M4 with floating point.

You will also need a FreeRTOSConfig.h file - you can use a FreeRTOSConfig.h supplied with one of the other STM32 projects as a starting point for that. You can see a list of STM32 projects here:

Hope something there helps.


nikola1010 wrote on Monday, August 24, 2015:

Thank you for information.

Kind regards.