jimmjimm wrote on Friday, April 04, 2014:
when i try to run my program with FREERTOS on STM32 i got one problem that if i just create interface task individually it works fine but when i create interface task with any another task it will go to hardware fault, there is how i create task. i tried comment interface task and uncomment other tasks it works fine, how this happen? any one get idea?
There is my main code:
int main(void)
{
// xTaskCreate( task_runCommandSlice, “runCommandSlice”, configMINIMAL_STACK_SIZE, NULL, 5, NULL );
// xTaskCreate( task_runHostSlice, “runHostSlice”, configMINIMAL_STACK_SIZE, NULL, 4, NULL );
// xTaskCreate( task_Heater_manage_temperature, “Heater_manage_temperature”, configMINIMAL_STACK_SIZE, NULL, 3, NULL );
// xTaskCreate( task_ThermocoupleReader, “ThermocoupleReader”, configMINIMAL_STACK_SIZE, NULL, 2, NULL );
// xTaskCreate( task_runPiezoSlice, “task_runPiezoSlice”, configMINIMAL_STACK_SIZE, NULL, 1, NULL );
xTaskCreate( task_interface_doUpdate, “interface_doUpdate”, configMINIMAL_STACK_SIZE*4, NULL, 0, NULL );
MYRCC_DeInit();
Board_init();
reset(true);
vTaskStartScheduler();
while(1){
}
}