Moving px4 project to crazyflie problems

I am trying to move my px4fmu-v2_default project to crazyflie_default for crazyflie board with bldc motor drivers.
Build was successful however pwm output is not sending signal to esc and in nsh I get following error

nsh> pwm info
ERROR [pwm] PWM_SERVO_GET_COUNT

It looks like pwm driver is not properly initialized and find correct pwm ports.
Any help would be much appreciated.

Kyu

1 Like

I think I found the reason.
in board_config.h in /src/drivers/boards/crazyflie
I set
'#define DIRECT_PWM_OUTPUT_CHANNELS as 4
because there are only 4 motors in the board
but this should be 6 or 8

1 Like