Hi, I'm using SAME70-QMTECH board. defconfig file is attached.
In general additionally to standard NSH config I have added: CONFIG_EXAMPLES_PWM=y CONFIG_PWM=y CONFIG_SAMV7_PWM0=y CONFIG_SAMV7_PWM0_CH2=y and added to my board.h: #define GPIO_PWMC0_H2 GPIO_PWMC0_H2_1 /* PD_22 */ The sam_pwm.c is copied from same70-xplained. I have a logic analyzer connected to GND + PIOD PIN22. When I run "pwm -t 1" I observe that the signal goes from low to high then stays high approximately for 1 second and goes back to low. Best regards, Petro пн, 16 трав. 2022 р. о 19:49 Michal Lenc <michall...@seznam.cz> пише: > Hello, > > > > > > Recently I've tried to use PWM on SAMe70 based board. I tried to execute > > > PWM example from apps. The PWM on SAMv7 seems to be not functional, at > > > least I observe only that pin goes high when PWM start is executed and > the > > > goes to low when PWM stop is executed. > > > > > > what king of configuration have you tried? I tested the configuration > same70 > -xplained:pysim on a real time control of RC > > plant <https://gitlab.fel.cvut.cz/otrees/nuttx-demos/-/tree/master/ > platforms/same70/rc-control > <https://gitlab.fel.cvut.cz/otrees/nuttx-demos/-/tree/master/platforms/same70/rc-control> > > > > with SAM E70 Xplained board few days ago. You should be able to run a PWM > example app in this config too. > > > > > The pins setup in board level section can be found here: > > < > https://github.com/apache/incubator-nuttx/blob/master/boards/arm/samv7/same > 70-xplained/include/board.h#L345 > <https://github.com/apache/incubator-nuttx/blob/master/boards/arm/samv7/same70-xplained/include/board.h#L345> > > > > > > > I will double check tomorrow if the configuration does not work for you. > > > > > Best regards, > Michal Lenc > > ---------- Původní e-mail ---------- > Od: Petro Karashchenko <petro.karashche...@gmail.com> > Komu: dev@nuttx.apache.org > Datum: 16. 5. 2022 18:36:49 > Předmět: Anyone using SAMv7 PWM? > "Hello, > > Recently I've tried to use PWM on SAMe70 based board. I tried to execute > PWM example from apps. The PWM on SAMv7 seems to be not functional, at > least I observe only that pin goes high when PWM start is executed and the > goes to low when PWM stop is executed. > > Is anyone using PWM with SAMv7 based board? Maybe I'm missing something? > > Best regards, > Petro > "