How would I write this in C Source code on the ARM, instead of writing it 
in a terminal command window through SSH?



On Friday, July 6, 2018 at 4:53:28 PM UTC-5, RobertCNelson wrote:
>
> On Fri, Jul 6, 2018 at 2:42 PM,  <[email protected] <javascript:>> 
> wrote: 
> > Hi Robert, 
> > 
> > I've tried your solution by typing : sudo sh -C "echo 'bone_pwm_P9_14' > 
> > /sys/devices/platform/bone_capemgr/slots" 
> > But it didn't work. I have the following error : sh: 0: Can't open echo 
> > 'bone_pwm_P9_14' >/sys/devices/platform/bone_capemgr/slots 
> > 
> > I just want to control the PWM module from pin P9_14. How can I do that 
> in 
> > the latest debian image ? 
>
> The slots file is long gone.. 
>
> You should be able to just do: 
>
> config-pin P9.14 pwm 
>
> Then 
>
> cd /sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchip*/ 
>
> echo 0 > export 
> echo 20000 > pwm*/period 
> echo 10000 > pwm*/duty_cycle 
> echo 1 > pwm*/enable 
>
> If that doesn't work, run: 
>
> sudo /opt/scripts/tools/version.sh 
>
> and we can see what's not fully configured.. 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/d784b1a0-2198-4c60-a3a2-9844ef6a259d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to