If you're in the process of creating a new Betaflight board, this post will guide you to get a working betaflight target, from the STM32 pinout to the configuration file.
100% home made Betaflight flight controller, from design to assembly.