A call to pvPortMalloc in a specific task causes a fault. Processor is MC/Atmel SAM D51. pvPortMalloc() never returns. The FreeRTOS was set up by the Harmony system that Microchip created.
I’ve never had this particular issue with other processors. Does anyone have an idea what might be causing the issue. Snippet of code below:
// allocate decode argument
while (pHandle == NULL) {
vTaskDelay (pdMS_TO_TICKS(10000));
pHandle = (void *)pvPortMalloc(sizeof(DECODE_Handle_t));
//if (pHandle == NULL) { continue; }
log_info ("%s: heap size %d", __func__, xPortGetFreeHeapSize());
// initialize handle members
//memset (pHandle, 0, sizeof (DECODE_Handle_t));
//pHandle->pCfg = pCfg;
}
Any ideas would be appreciated. Thanks.