This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can examples\multiprotocol use FreeRTOS instead?

Hi, we are developing on the NRF52833/840, using SDK 17.1.0. and FreeRTOS.

We currently have ESB that use FreeRTOS. The next stage is to develop the BLE function that also uses FreeRTOS. And like "example/mutilprotocol" to switch between ESB/BLE

Pre-refer to the "examples\multiprotocol" and "examples\ble_peripheral\ble_app_hrs_freertos" sample code. It is found that to start the BLE function, the BLE initialization must be completed before vTaskStartScheduler() is executed, otherwise the system will be reset abnormally. Therefore, FreeRTOS must be stopped before ESB or BLE can be switched. We tried to use "vTaskEndScheduler()" to stop FreeRTOS, but it seems to have no effect.

It is not clear whether we are working in the right direction. Are there any examples about muitlprotocol and using FreeRTOS for reference. Or if you have any suggestions, please help.

Thanks

Lawrence

  • It is not clear whether we are working in the right direction. Are there any examples about muitlprotocol and using FreeRTOS for reference.

    Unfortunately there does not seem to be any multiprotol example that uses freertos and BLE alongside other protocols. That said, it should not be that difficult to merge the examples together. 

    otherwise the system will be reset abnormally. Therefore, FreeRTOS must be stopped before ESB or BLE can be switched.

    I do not completely understand the requirement here. Switch to ESB and BLE can happen using radio timeslot API without switching off FreeRTOS. Can you please be more specific on why you think that FreeRTOS needs to be stopped?

  • thanks for the reply.

    According to your professional experience, I modified the examples\ble_peripheral\ble_app_hrs_freertos" example. When FreeRTOS is running, the BLE function is stopped and restarted, and there is no abnormality in the process. I will confirm whether it is the source code problem that I developed.

    Thank you for your technical support.

    Sincerely,

    Lawrence

Related