Steering servo or motor only one works at a time

Hello!

I’m using L298N motor driver for dc motor and a steering servo. I’ve loaded Rover 3.4.2 in Pixhawk 2.1.

When I set MOT_PWM_TYPE parameter to 0(normal) and on arming the steering servo responds to radio input but not the throttle.

Now when I set this parameter to 4(brushed bipolar) or 3(brushed with relay) with same connections, the motor works fine but servo doesn’t respond.

Overall, steering or throttle only one works at a time.

Please can anyone help me fix this issue?