Receiving data from mavlink using STM32

I want to get some autopilot data via Mavlink with STM32. I imported the library into STM32Cube ide but I couldn’t establish the relationship with Hal_uart. Can you help me?