cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L0 snippet - cmsis rtos

jephua
Associate II
Posted on September 03, 2014 at 03:23

Hi all,

I am using the STM32L0 snippets code and would like to use the CMSIS RTOS which is included inside in the form of cmsis_os.h.

Inside Truestudio, I added the header file and included the folder inside my project's C compiler's include path. However, when i build my project, its says

  1. undefined reference to `osKernelInitialize'
  2. undefined reference to `osKernelStart'

I then googled and read that we also need RTOS.lib and RTOS_config.c? May I know which steps i have missed or misconfigured Truestudio?

Thanks for helping!
5 REPLIES 5
chen
Associate II
Posted on September 03, 2014 at 15:17

Hi

''I am using the STM32L0 snippets code and would like to use the CMSIS RTOS which is included inside in the form of cmsis_os.h.''

''May I know which steps i have missed or misconfigured Truestudio?''

My understanding of CMSIS RTOS is that it is a wrapper layer NOT a full blown RTOS.

It provides an abstraction for a RTOS (that you must provide) so that it is easier to change from one RTOS to another, if needed.

(That is my understanding of it )

If you want an RTOS, check this Wikipedia page :

http://en.wikipedia.org/wiki/List_of_real-time_operating_systems

jephua
Associate II
Posted on September 04, 2014 at 05:48

Ok thanks for the information. Have you tried this CMSIS-RTOS with FreeRTOS?

chen
Associate II
Posted on September 04, 2014 at 10:19

Hi

No, I have never tried the CMSYS-RTOS wrapper.

I have and am using at the moment FreeRTOS.

I did write my own OS wrapper in my last project.

jephua
Associate II
Posted on September 08, 2014 at 08:12

Hi chen chung, do you mind teaching me the steps how to get the FreeRTOS into a project? I am looking at the basic implementation of creating a thread and running it. Thanks, hope to hear from you!

chen
Associate II
Posted on September 16, 2014 at 13:40

Hi

Sorry, missed your replay since I was busy that weekend.

What compiler/IDE/development environment are you using?

There are lots of examples for ST devices from FreeRTOS but they are divided into

1) device

2) development environment

http://www.freertos.org/a00090.html#ST