This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using scheduler in a FreeRTOS environment

Hi All, 

We are in process of Porting our Thread based application into FreeRTOS environment.

For this, we intend to make use of freertos_coap_server example provided and then - to perfrom dfu - we will integrate dfu client into freertos_server_example. 

Now, dfu client makes use of scheduler and freertos has it's own scheduler.

Will both the schedulers work together ? If not - what changes in the code are required to make them work together ?

Thanks. 

 

Parents
  • Hi,

    You should only use one scheduler, but you can have multiple tasks.

    Is there any specific reason why you are porting your application into FreeRTOS? I see from one of your previous cases that you mention implementing a Thread application using NCS because you want to use a real-time-operating system. NCS use the Zephyr RTOS, so you will already have an application with a RTOS if you create your application in NCS instead. If you are interested in DFU you can take a look at the Thread CoAP Client sample. Support for DFU has been added in the latest versions of the sample. This is not in v1.5.1 of NCS, but it is in master, and it is also in the release candidates for v1.6.0, such as release candidate 1.6.0-rc3. It will also be in the official release of v1.6.0 when that is released. This is added as an optional extension to the sample, and you can see how to activate it here. How to test the DFU extension in the sample is described here.

    Best regards,

    Marte

Reply
  • Hi,

    You should only use one scheduler, but you can have multiple tasks.

    Is there any specific reason why you are porting your application into FreeRTOS? I see from one of your previous cases that you mention implementing a Thread application using NCS because you want to use a real-time-operating system. NCS use the Zephyr RTOS, so you will already have an application with a RTOS if you create your application in NCS instead. If you are interested in DFU you can take a look at the Thread CoAP Client sample. Support for DFU has been added in the latest versions of the sample. This is not in v1.5.1 of NCS, but it is in master, and it is also in the release candidates for v1.6.0, such as release candidate 1.6.0-rc3. It will also be in the official release of v1.6.0 when that is released. This is added as an optional extension to the sample, and you can see how to activate it here. How to test the DFU extension in the sample is described here.

    Best regards,

    Marte

Children
Related