EVAL : IMXRT1176DVMAA
I have a sample code using freeRTOS. In main.c below steps are performed.
//------------------------main.c -----------------------
int main(void)
{
/* Init board hardware. */
BOARD_ConfigMPU();
BOARD_InitPins();
BOARD_InitCustomPins();
BOARD_BootClockRUN();
BOARD_InitDebugConsole();
/* Init logging */
configureLog();
/* Initialize necessary hardware */
funcInitCustomeData(custome_task_PRIORITY);
/* Start the scheduler */
vTaskStartScheduler();
/* The program should never run the following lines */
PRINTF("FATAL: Scheduler failed!\r\n");
return 0;
}
//-----------------------------custom.cpp--------------------------------
/*!
* @brief Interrupt service fuction of switch.
*/
void EXAMPLE_GPIO_IRQHandler(void)
{
/* clear the interrupt status */
GPIO_PortClearInterruptFlags(EXAMPLE_SW_GPIO, 1U << EXAMPLE_SW_GPIO_PIN);
/* Change state of switch. */
g_InputSignal = true; // This flag is used in custome_task just to print some log.
SDK_ISR_EXIT_BARRIER;
}
void funcInitCustomeData(int8_t task_priority)
{
const gpio_pin_config_t Button_config = {kGPIO_DigitalInput,0,kGPIO_IntRisingEdge};
NVIC_SetPriority(GPIO13_Combined_0_31_IRQn, 2);
EnableIRQ(GPIO13_Combined_0_31_IRQn); // -----> This line makes my code stuck
GPIO_PinInit(GPIO13,EXAMPLE_SW_GPIO_PIN,&Button_config);
GPIO_PortEnableInterrupts(GPIO13, 1U << EXAMPLE_SW_GPIO_PIN);
if (xTaskCreate(custome_task, "custome_task", configMINIMAL_STACK_SIZE + 100, NULL, task_priority, NULL) != pdPASS)
{
LOGI("Custome task creation failed!.");
while (1)
;
}
}
Explanation :
Compilation - OK, Execution - NOK : execution stuck at EnableIRQ call
With above implementation, when I keep doing step over, it works till vTaskStartScheduler gets called from main.c. Next to that it goes to DefaultISR and I can see below stack trace.

Do I needs to disable some interrupt for EVK or configure clock for GPIO interrupt. Not sure, please help.
I hope this gives more detailed information.