Hi,

I have a KIT AURIX TC223 TRB and I'm trying to generate a PWM signal on pin 12 of port 11 but I can't. I've used an example that I found on iLLD documentation. The example is the following:

Code:
#include <Gtm/Tom/Pwm/IfxGtm_Tom_Pwm.h>
#include "IfxCpu_Irq.h"

Ifx_GTM *gtm = &MODULE_GTM;
#define TOM0_CH0_PRIO 10

float32 frequency;

IFX_INTERRUPT(TOM0Ch0_ISR, 0, TOM0_CH0_PRIO)
{}

int core0_main(void){

    /*
     * !!WATCHDOG0 AND SAFETY WATCHDOG ARE DISABLED HERE!!
     * Enable the watchdog in the demo if it is required and also service the watchdog periodically
     * */

    IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword());
    IfxScuWdt_disableSafetyWatchdog(IfxScuWdt_getSafetyWatchdogPassword());
	// install interrupt handlers
	IfxCpu_Irq_installInterruptHandler (TOM0Ch0_ISR, TOM0_CH0_PRIO);

	// enable GTM clock
	    frequency = IfxGtm_Cmu_getModuleFrequency(gtm);
	    // Enables the GTM
	    IfxGtm_enable(gtm);
	    // Set the global clock frequency to the max
	    IfxGtm_Cmu_setGclkFrequency(gtm, frequency);
	    // Set the CMU CLK0
	    IfxGtm_Cmu_setClkFrequency(gtm, IfxGtm_Cmu_Clk_0, frequency);
	    // FXCLK: used by TOM and CLK0: used by ATOM
	    IfxGtm_Cmu_enableClocks(gtm, IFXGTM_CMU_CLKEN_FXCLK); //Here was IFXGTM_CMU_CLKEN_FXCLK | IFXGTM_CMU_CLKEN_CLK0
 
	// initialise TOM
	IfxGtm_Tom_Pwm_Config tomConfig;
	IfxGtm_Tom_Pwm_Driver tomHandle;

	IfxGtm_Tom_Pwm_initConfig(&tomConfig, gtm);

	tomConfig.tomChannel  = IfxGtm_Tom_Ch_7; //Here was IfxGtm_Tom_Ch_0
	tomConfig.period                   = 20;
	tomConfig.dutyCycle              = 10;
	tomConfig.interrupt.ccu0Enabled = FALSE;
	tomConfig.interrupt.isrPriority = TOM0_CH0_PRIO;
	tomConfig.pin.outputPin = &IfxGtm_TOM0_7_TOUT101_P11_12_OUT; //Here was IfxGtm_TOM0_0_TOUT106_P10_4_OUT

	IfxGtm_Tom_Pwm_init(&tomHandle, &tomConfig);

    while (1)
    {
    }
    return 0;
}
Could you explain me what is wrong?

Thank you in advance.