TI中文支持网
TI专业的中文技术问题搜集分享网站

am5718的ehrpwm时钟

TI工程师您好!

        使用ehrpwm中dts如下

ehrpwm2: pwm@48442200 {
compatible = "ti,pwm-tiehrpwm",
"ti,pwm-tiehrpwm";
#pwm-cells = <3>;

reg = <0x48442200 0x80>;

clocks = <&ehrpwm2_tbclk>, <&l4_root_clk_div>;

clock-names = "tbclk", "fck";
interrupt-parent = <&gic>;
interrupt-name = "ti_pwm_interrupt"; 

interrupt-controller;

interrupts = <209>;
ti,hwmods = "ehrpwm2";

status = "okay";
};

可以正常挂载驱动,执行echo 1 > /sys/class/pwm/pwmchip1/export正常,再执行

echo 2000000 > /sys/class/pwm/pwmchip1/pwm1/period时内核打印错误提示

[  167.655265] 44000000.ocp:L3 Custom Error: MASTER MPU TARGET L4_PER2_P3 (Read): Data Access in Use User mode during Functional access

请问如何处理?谢谢!

Shine:

请问如果disable掉中断,会有这个问题吗?请看一下下面这个帖子是否有帮助?
e2e.ti.com/…/717079

赞(0)
未经允许不得转载:TI中文支持网 » am5718的ehrpwm时钟
分享到: 更多 (0)