HardFault_Handler when call prvPortStartFirstTask()

Hi all,

I’m using NUCLEO STM32F429ZI Cortex M4.
I have make a new easy project using http://www.freertos.org/Creating-a-new-FreeRTOS-project.html

I use FreeRTOSconfig.h of STM32F4 demo

I use ST ID: STM32cudeIDE
when call vTaskStartScheduler(); i have HardFault_Handler
Why? can you help me?

I have this simple main:

int main(void)
{
  HAL_Init();
  SystemClock_Config();
  MX_GPIO_Init();
  MX_ETH_Init();
  MX_USART3_UART_Init();
  MX_USB_OTG_FS_PCD_Init();

  xTaskCreate(vTaskCodeTest,"TEST",configMINIMAL_STACK_SIZE,NULL, 2,&HendlerTask1 );

  /* Start the tasks and timer running. */
	vTaskStartScheduler();
  /* Infinite loop */
for(;;)
  {

  }

}

void vTaskCodeTest( void *pvParameters )
{
	for( ;; )
	{
		HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);
	}
}

Did you install the FreeRTOS interrupt handlers? See the 'Special note to ARM Cortex-M user" under FAQ 1 on this page: https://www.freertos.org/FAQHelp.html

In case you are not aware, STM32Cube will create a FreeRTOS application for you.

Thanks Richard,
I have solved the problem.

I have add
#define vPortSVCHandler SVC_Handler
#define xPortPendSVHandler PendSV_Handler
#define xPortSysTickHandler SysTick_Handler
In FreeRTOSconfig.h

and i add
__weak void SVC_Handler(void);
__weak void PendSV_Handler(void);
__weak void SysTick_Handler(void); //conflicts with FreeRTOS port.c definition
in stm32f4xx_it.c to erase the conflicts with FreeRTOS port.c definition.

Thanks for your support,
Luca