I’ve got pwm working both through echoing values directly to the device files from bash, and also via my C++ program. However I can’t get two channels of a epwmss device to operate independently. e.g. If I export both
/sys/devices/platform/ocp/48300000.epwmss/48300200.pwm/pwm/pwmchip1/pwm-1:0 and pwm-1:1 then set a value for period and duty on either one of the channels (pwm-1:0 or pwm-1:1), as soon as I enable that channel both channels start. Stopping the channel stops both channels. I’ve even tested starting one channel then stopping the other and both stop.
I had read elsewhere that both channels had to use the same frequency (period), which would work for my application, however I need to be able to set the duty cycle and enable/disable independently. Is that possible?
I’m using the 4.14.20-ti-r36 kernel and have the following overlays enabled:
I’ll go read the Technical Reference Manual now, but if someone can shed some light on this for me it would be much appreciated!