FreeRTOS interrupt handler

hello,
I’m porting in FreeRTOS a simple application originally written to work bare-metal on the Ultrascale ZCU102. The application writes data to the device and then waits for an interrupt to be raised and handled by a callback function. This application works fine bare-metal, but when used on FreeRTOS the interrupt raised by the device is not catched.
There are some particular aspects to take care to configure interrupts in FreeRTOS?

here is how interrupts are enabled right now:

	XScuGic_Config *GicConfig;
Xil_ExceptionInit();

/*
 * Initialize the interrupt controller driver so that it is ready to
 * use.
 */
GicConfig = XScuGic_LookupConfig(INTC_DEVICE_ID);
if (NULL == GicConfig) {
	return XST_FAILURE;
}

Status = XScuGic_CfgInitialize(IntcInstancePtr, GicConfig,
	    GicConfig->CpuBaseAddress);
if (Status != XST_SUCCESS) {
	return XST_FAILURE;
}


/*
 * Connect the interrupt controller interrupt handler to the hardware
 * interrupt handling logic in the processor.
 */
Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_IRQ_INT,
		(Xil_ExceptionHandler)XScuGic_InterruptHandler,
		IntcInstancePtr);
/*
 * Connect a device driver handler that will be called when an
 * interrupt for the device occurs, the device driver handler performs
 * the specific interrupt processing for the device.
 */
Status = XScuGic_Connect(IntcInstancePtr, EmacPsIntrId,
		(Xil_InterruptHandler) XEmacPs_IntrHandler,
		(void *) EmacPsInstancePtr);
if (Status != XST_SUCCESS) {
	EmacPsUtilErrorTrap
		("Unable to connect ISR to interrupt controller");
	return XST_FAILURE;
}

/*
 * Enable interrupts from the hardware
 */
XScuGic_Enable(IntcInstancePtr, EmacPsIntrId);

/*
 * Enable interrupts in the processor
 */
Xil_ExceptionEnable();

Read from the “Interrupt Vector Table” heading down on the page describing the FreeRTOS port for that hardware. I suspect the vector table you configure is not the vector table used after the scheduler starts. You can copy how this pre-configred example works: https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS/Demo/CORTEX_A53_64-bit_UltraScale_MPSoC/RTOSDemo_A53/src - in particular note the file FreeRTOS_asm_vectors.S and the function vApplicationIRQHandler().