How to port ArduPilot to hakrcF405V2?

I have created a new hwdef.dat file and want to port it to the HAKRCF405V2 flight controller. Although MP recognized the flight controller after compilation But mavlink keeps connecting and timeout. May I ask if there is any error in the configuration file.

https://drive.google.com/drive/folders/1BzM9Akh9A7bd9xhlp3IXP25N5_vmFYXy?usp=sharing

HAKRC 4530V2 FC Manufacturer-Shenzhen Haike

Make sure that your crystal frequency is matched with your stm for conformation you can use stm32cubeide (clock configation)so that you can get accurate crystal frequency for your stm

Heve you solved the issue ?