Hi Konrad,
Thanks for your quick response.
Now I want to increment the TTC counter value to enable the system tick. How to configure the TTC register to increment it in QEMU.
I found the steps to enable the TTC counter which is below. But not able to increment. If possible could you please share the example source code?
1. Select clock input source, set prescaler value (slcr.MIO_MUX_SEL registers, TTC Clock Control
register). Ensure TTC is disabled (ttc.Counter_Control_x [DIS] = 1) before proceeding with this
step.
2. Set interval value (Interval register). This step is optional, for interval mode only.
3. Set match value (Match registers). This step is optional, if matching is to be enabled.
4. Enable interrupt (Interrupt Enable register). This step is optional, if interrupt is to be enabled.
5. Enable/disable waveform output, enable/disable matching, set counting direction, set mode,
enable counter (TTC Counter Control register). This step starts the counter.
Thanks & Regards,
P.Gowrishankar