Is it possible to run ble_central and ble_peripheral as two threads using freeRTOS on the nrf52832 chip? Is freeRTOS on nrf52 is on an experimental stage?
Is it possible to run ble_central and ble_peripheral as two threads using freeRTOS on the nrf52832 chip? Is freeRTOS on nrf52 is on an experimental stage?
I would not try to run the two projects in two threads no, they are not thread safe in any way. Instead I suggest to take a look at the the BLE relay example, that show usage of both central and peripheral in the same project:
https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_rscs_relay.html
Most of the examples do not use FreeRTOS, I recommend to try to build your application without FreeRTOS, since not all modules are thread safe.
Kenneth
Hi Kenneth,
I am at the early stage of firmware design where we are designing a product with 3 nrf52832 chips. One chip solely act as a peripheral, one as central, and one concurrently as central and peripheral with freeRTOS to communicate with the other two chips. The 3 chips have their own functions to take care of.
I went through the below link which explains that we can have a concurrent system with freeRTOS.
I would like to know whether we can get support from experts if we are going forward with freeRTOS