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