betaflight / betaflight

Open Source Flight Controller Firmware
GNU General Public License v3.0
8.65k stars 3.05k forks source link

Add support for the STM32H5 series MCUs #13482

Open hydra opened 8 months ago

hydra commented 8 months ago

Is your feature request related to a problem? Please describe

The H5 MCUs, specifically the STM32H562RG, makes a good candidate for a high performance, and cheap, flight controller MCU with up-to-date peripherals.

Work is already underway, this is just to track progress.

Please link PR's as they're raised.

Anyone interested in FC hardware prototypes please contact me via the SPRacing or BF discord servers.

H5 series overview: https://www.st.com/en/microcontrollers-microprocessors/stm32h5-series.html

Note there are two types of H5 MCU:

The H562 is essentially the same as the H563 but without some peripherals that BF doesn't use anyway, so the H563 makes for a good development system as code will run on the H562 as well.

H563 Nucleo: https://www.st.com/en/evaluation-tools/nucleo-h563zi.html

Datasheet: stm32h562rg.pdf Reference manual: https://www.st.com/resource/en/reference_manual/rm0481-stm32h563h573-and-stm32h562-armbased-32bit-mcus-stmicroelectronics.pdf

block diagram:

image

system architecture:

image

mouser links:

https://www.mouser.sg/ProductDetail/STMicroelectronics/STM32H562RGT6?qs=amGC7iS6iy80F6W31pzhsQ%3D%3D (in stock and shipping, as of 2024/03/29)

Of note to developers, the H56x has an ETM so it can be used to do real-time system profiling using a cheap debugger. Tools like segger SystemView and O-Zone can be used to see which functions are using the CPU the most. Other highlights include OctoSPI, USBC-PD, I3C and an updated DMA controller.

Describe the solution you'd like

Flying BF with an H5 😄

Describe alternatives you've considered

Other MCU from other manufacturers

Other information

No response

alex39292 commented 7 months ago

This is a good idea to use H5 series microcontroller! I'm with you!💪

iottrends commented 4 months ago

Any updates on this!! @hydra, I would like to contribute... it can be porting or designing FC or both...

BR Abhinav