Other Parts Discussed in Thread: DM385
Hi!
I am trying to output 32KHz from RSOSC to CLKOUT1 pin.
//set 32kHz to clkout1
parent = clk_get(NULL, "rcosc_32k_ck");
if (!(parent))
printk("Unable to get [rcosc_32k_ck] clk\n");
child = clk_get(NULL, "sys_clkout2");
if (!(child))
printk("Unable to get [sys_clkout2] clk\n");
ret = clk_set_parent(child, parent);
if (ret < 0)
printk("Unable to set parent clk to sys_clkout2\n");
clk_put(child);
clk_put(parent);
To test the configuration and DEVOSC stability, I setup DEVOSC output to clkout1 and I see 20MHz as should be.
Acording to documentation RTCDIVIDER is fixed.
The frequency I see with oscilloscope when rcosc32 is set to output is about 39kHz..
Can somebody tell me how this could be?
