How to use the STM32CubeMX Framework (API)