> On 06 Jan 2017, at 00:29, Sag ich Dir nich <[email protected]> wrote: > > no one has any idea?
The pwm from hal_pru_generic (which runs from the PRU) is a "lightweight" component compared to the mesanet hostmot driver. http://www.machinekit.io/docs/man/man9/hal_pru_generic/ So not all the pins are guaranteed to be the same. If you use the pwmgen component (not from the PRU but from the realtime thread) then it probably complains about the pins because they are already taken by the PRU when the hpg.pwmgen pins are configured. So I'd start by not loading the hpg pwmgen before the pwmgen component > > Am Samstag, 31. Dezember 2016 23:42:52 UTC+1 schrieb Sag ich Dir nich: >> >> Hello, >> >> i added "pwmgen.make-pulses" and "pwmgen.update" and got no error. >> >> i was trying to add pwm frequency to make my spindle quieter and also adding >> pwmgen type 1 (PWM/PDM and Direction Pin) for testing but no matter what i >> wrote, it always got me an error message. >> >> i have a Beaglebone Black with the Cramps Board >> >> the two lines are: >> >> setp hpg.pwmgen.00.pwm-freq 20000 >> setp hpg.pwmgen.00.dir bb_gpio.p8.out-16 >> >> so first the error message said: >> >> pin or parameter ´hpg.pwmgen.00.pwm-freq´ not found >> >> so i changed the name to: >> >> pwmgen.00.pwm-freq >> and >> pwmgen.0.pwm-freq >> and >> hpg.pwmgen.0.pwm-freq >> and >> hpg.pwmgen.00.pwm_freq >> and >> hpg.pwmgen.0.pwm_freq >> and >> pwmgen.00.pwm_freq >> and >> pwmgen.0.pwm_freq >> >> but every time it said "pin or parameter not found" >> >> when i commented the first: >> >> #setp hpg.pwmgen.00.pwm-freq 20000 >> setp hpg.pwmgen.00.dir bb_gpio.p8.out-16 >> >> i got the same error and changed the name to: >> >> pwmgen.0.dir bb_gpio.p8.out-16 >> >> and now i got a different error message: >> >> it said "pin ´pwmgen.0.dir´ is not writable" (what does that mean?) >> >> >> i was searching on this site http://www.machinekit.io/docs/man/man9/pwmgen/ >> and on google but havent found a solution yet >> >> Basically i want to add a pwm Frequency (20khz), Pwmgen Type 1 (for pwm and >> direction Pin, that may solve my PID problem) > > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to the Google Groups > "Machinekit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/group/machinekit. > For more options, visit https://groups.google.com/d/optout. -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
