Simple Guide to make a port of FreeRTOS 8.1.2 for STM32F3-DISCOVERY

nl21 wrote on Saturday, September 13, 2014:

Hi to all,

there is a complete guide to make a port of freeRTOS 8.1.2 for the

board STM32F3-DISCOVERY KIT ?

Thanks in advance.

davedoors wrote on Sunday, September 14, 2014:

You don’t need to port FreeRTOS to the STM32F3. It already runs on all Cortex-M parts. All you need to do is add the source files to your build.
http://www.freertos.org/Creating-a-new-FreeRTOS-project.html
http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html

The advice is always to start with a demo n the download then adapt that to your board.

nl21 wrote on Sunday, September 14, 2014:

OK, but I don’t understand why can I adapt the demo for stm32f4 to my stm32f3…

rtel wrote on Sunday, September 14, 2014:

Sorry, I don’t understand your question “why can I adapt the demo for stm32f4 to my stm32f3”. As far as the RTOS is concerned the two are basically the same.

If you are using a Cortex-M3 device or a Cortex-M4 device without an FPU, or a Cortex-M4 device but with the FPU turned off then use the files from the FreeRTOS/source/portable/[compiler]/ARM_CM3 directory.

If you are using a Cortex-M4F device and turning the FPU on then use the files from the FreeRTOS/source/portable/[compiler]/ARM_CM4F directory.

Also to switch chips you need to make sure the memory map (linker script) is correct - but that is about it.

Regards.