Using RA Smart Configurator V5.4.0 add 8 new GPT stacks in RA4M2 or RA4M3 project with the same parameters as follow:
XTAL= 8MHz, PCLKD=100MHz, Mode=Saw-wave PWM. Period=1, Period Unit=Hertz
Then the gerated code different as follow:
GPT Channel 0~3: /* Actual period: 1 seconds. Actual duty: 50%. */ .period_counts = (uint32_t) 0x5f5e100, .duty_cycle_counts = 0x2faf080, .source_div = (timer_source_div_t)0,
GPT Channel 4~7: /* Actual period: 0.67108864 seconds. Actual duty: 50%. */ .period_counts = (uint32_t) 0x10000, .duty_cycle_counts = 0x8000, .source_div = (timer_source_div_t)10,
In actual harware function, GPT Channel 4~7 not function unless manual changed the mentioned setting above to GPT Channel 0~3 setting in hal_data.c then function well. Please clarify why this issues happened? Is that RA Smart Configurator issues?