Why am I in ble_ app_ hrs_ FreeRTOS add their own tasks?
Why am I in ble_ app_ hrs_ FreeRTOS add their own tasks?
at SDK16 or sdk17,all not add my task
at SDK16 or sdk17,all not add my task
Hi,
I do not understand your question. What do you want to know regarding the task in FreeRTOS hrs example? why do we add a task or how do we add a new task?
#if NRF_LOG_ENABLED
// Start execution.
if (pdPASS != xTaskCreate(logger_thread, "LOGGER", 256, NULL, 1, &m_logger_thread))
{
APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
}
#endif
here ,look,this is example. but,add myself task ,compile is ok ,download is wrong.
like upper ,add myself task,thinks
you probably have run short of heap and xTaskCreate failed with error NRF_ERROR_NO_MEM.
Increase the heap size configTOTAL_HEAP_SIZE in FreeRTOSConfig.h file