I use freeRTOS on an LPCXpresso Board with LPC1769.
But I have a Problem with my code. I got some HardFaults, so I started debugging. Now I have only one task left which does nothing but waiting with “vTaskDelayUntil” and everything is fine. But if I call “uxTaskGetStackHighWaterMark(TASK_NAME)” I get into the HardFault-Handler. I found that “pcEndOfStack” in the function is the problem. My debugger shows:
Name : pcEndOfStack Details:0x14f04f46 <Address 0x14f04f46 out of bounds> Default:0x14f04f46 <Address 0x14f04f46 out of bounds> Decimal:351293254
And because of that, “*pucStackByte == tskSTACK_FILL_BYTE” in “usTaskCheckFreeStackSpace” fails and I get the HardFault.
What could be the Problem?