dm-multiple-face-detection-on-mcxn947 SERVO PIN RUN OUTPUT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

dm-multiple-face-detection-on-mcxn947 SERVO PIN RUN OUTPUT

617 次查看
jlopezgtcm
Contributor I

Hello community,

I’m working on a project where I need to control two servos using PWM at 200 Hz through pins P1_22 (tilt) and P1_23 (pan).
I have successfully set SERVO_ENABLE = 1, and the camera module is working correctly and detects without issues. Also, the hardware jumpers on the board are properly configured according to the design.

However, when checking the output on an oscilloscope, no PWM signal is detected on the specified pins, even though the duty cycle values are correctly set.

When reviewing the pin configuration (Routing Details), the following active errors appear: SmartDMA0 - TRIG, 0 on pin B12,SmartDMA0 - TRIG, 1 on pin B11,SmartDMA0 - TRIG, 2 on pin E11,LPFlexcomm0 - LPFLEXCOMM_P0 on pin B10,LPFlexcomm0 - LPFLEXCOMM_P1 on pin A10

These errors suggest conflicts between peripherals, and I suspect they may be preventing proper PWM routing from modules like SCTIMER or CTIMER to pins P1_22 and P1_23.

Has anyone managed to get servo PWM working on these pins? Is there anything specific I should check in the PINMUX or timer clock configuration?

Any help or working examples would be greatly appreciated.

标签 (2)
0 项奖励
回复
1 回复

595 次查看
Harry_Zhang
NXP Employee
NXP Employee

Hi @jlopezgtcm 

"When reviewing the pin configuration (Routing Details), the following active errors appear: SmartDMA0 - TRIG, 0 on pin B12,SmartDMA0 - TRIG, 1 on pin B11,SmartDMA0 - TRIG, 2 on pin E11,LPFlexcomm0 - LPFLEXCOMM_P0 on pin B10,LPFlexcomm0 - LPFLEXCOMM_P1 on pin A10"

This is because the relevant pins in the demo are handwritten, not generated through the config tool, so there may be an error when opening them.

When i open dm-multiple-face-detection-on-mcxn947 project through config tool. it also reported this error.

I think you can first test the sctimer sample pwm example.

Harry_Zhang_0-1746779202659.png

If it can work, i think you can port it to your demo.

BR

Harry


It also uses the pin 1_22 and pin 1_23.

0 项奖励
回复