Hi,
I've followed all the steps on [Tutorial: IAR + FreeRTOS + Freedom Board | MCU on Eclipse] to setup FreeRTOS on FRDM-KL25Z. Processor Expert Driver Suite was used to generate the code. Everything was going perfect (no warnings, no errors, task running ok) until I try to create my second task:
int main(void)
{
PE_low_level_init();
FRTOS1_xTaskCreate(ToggleRedLed, (signed portCHAR *)"Task1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL);
FRTOS1_xTaskCreate(ToggleGreenLed, (signed portCHAR *)"Task2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL);
#ifdef PEX_RTOS_START
PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */
#endif
for(;;){}
/* END main */
Now I'm in trouble. From debugging I've noticed the execution reaches PEX_RTOS_START(); and then goes to FRTOS1_vApplicationMallocFailedHook(void)
If anyone knows what is happening with this simple code or maybe know where do I need to start investigating, help please!