Hi Erich,
thanks for the reply.
I modified the blinky task instead, and removed all the lwip usage from my project. The blinky task is now:
static void task_blinky(void *pvParameters) {
(void)pvParameters; /* parameter not used */
for(;;) {
void *pvReturn = pvPortMalloc(100);
GPIO_DRV_TogglePinOutput(DIAG_LED0);
vTaskDelay(500/portTICK_RATE_MS);
vPortFree(pvReturn);
}
}
The program still crashes at the first call to pvPortMalloc in the blinky task, i.e after the task is scheduled for the first time. The pvReturn is zero. I noticed also that the SP register value drops from the top of the "data 0x2000000" partition to almost its start. I wonder if I configured the FreeRTOS wrong in a way...The FreeRTOSConfig.h is similar to the demo examples one.