HAL RPM sensor not working on Pixhawk 4 mini

I connected and configured (Arducopter4.1.3) to a RPM HAL sensor at first for testing to a Matek F405-SE (uses F405-WING) which worked perfect, but when the same sensor is connected to a Pixhawk 4 mini it does nothing.

I used the setup below:

F405-WING
RPM sensor is connected to PWM9

https://ardupilot.org/copter/docs/common-rpm.html

PA8 TIM1_CH1 TIM1 PWM(9) GPIO(58)

BRD_PWM_COUNT,8
RPM2_PIN,58
RPM2_SCALING,1
RPM2_TYPE,1

PH4-Mini
RPM sensor is connected to CAP1

https://ardupilot.org/copter/docs/common-rpm.html

PA5 TIM2_CH1 TIM2 PWM(9) GPIO(58)

BRD_PWM_COUNT,11
RPM2_PIN,58
RPM2_SCALING,1
RPM2_TYPE,1

Please help!

T-Rex600 PH4 Mini 06-02-2022 RPM.param (20.2 KB)
Matek F405-SE 06-02-2022 RPM.param (18.3 KB)

Solved, it’s working on GPIO 58 now, I don’t know why