i using a ble_app_hrs_freertos example, nrf52
I inserted a new custom task.
if(pdPASS != xTaskCreate(main_thread, "MAIN", 32, NULL , 1, &m_main_thread))
{
APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
}
and in my custom task, called a sd_ble_gatts_hvx function. then i get a hardfault.
but, if i call in interrupt service routine or app_timer service routine, well done.
why?? do the hard fault occur?
i can't understand.