Hi!
I am experimenting with the ble_app_hrs_freertos example.
I would like to start two additional tasks. All works until a ble conection is made. after that my created tasks do not run anymore. If I close the ble connection again they are running again.
As far as I know the ble task has priority of 2 and my tasks have 1. But they should be called sometimes? If I set priority of all tasks to 2, BLE is working slower...
Can anyone explain to me what happening here? I basically added following code to the example:
if (pdPASS != xTaskCreate(Task1, "Name1", USBD_STACK_SIZE, NULL, 1, &m_Task1)) { APP_ERROR_HANDLER(NRF_ERROR_NO_MEM); } if (pdPASS != xTaskCreate(Task2, "Name2", USBD_STACK_SIZE, NULL, 1, &m_Task2)) { APP_ERROR_HANDLER(NRF_ERROR_NO_MEM); } void Task1() { while (true) { // Do something } } void Task2() { while (true) { // Do something } }
Thanks for any help...