1、Zephyr on STM32:What you need to knowErwan Gouriou-STMicroelectronicsZephyr Developper SummitJune 2023 Prague Working STMicroelectonics,Le Mans Started Zephyr in 2016 Initially contributed as a Linaro assignee Contributed to Device Tree introduction STM32&Shields maintainer ST Zephyr Technical leade
2、r Github:erwango Discord:ErwanGA bit about myselfWhy proposing this talk?3What youll learn from this talk#STM32 parts support#Clock configuration#Peripherals#Trusted Firmware Support#Join the party#Questions#STM32 resources#Power ManagementSTM32 support in Zephyr130+boards supported180+Supported SoC
3、(19 series)40+peripherals supportedWide range of featuresTF-M,USB,Ethernet,CAN,BLE,LoRa.5380+contributors issued 5000+commitsZephyr RTOSSTM32 resourcesMonitorDebugProgrammingComplemented with STM32Cube EcosystemZephyr RTOS6KernelOS ServicesApplication Services3rdParty Librarieshal_stm32SelectFind do
4、csProgrammingHALDriversDebugGDBOpenOCDSTM32Cube Ecosystem STM32CubeMCU packages are stored under zephyr hal_stm32 module Forks of https:/ Updated at each Zephyr release Patches allowed under specific conditions STM32Cube APIs are used for Zephyr drivers developments Allows reuse of validated code an
5、d factorization HAL,LL or CMSIS files used depending on drivers specificsHow were integrating STM32Cube HAL7 Use CMSIS files to populate dts node properties Eg:hal_stm32:stm32cube/stm32l4xx/soc/stm32l431xx.h You can mix Zephyr and STM32Cube APIs in your application See https:/ CONFIG_USE_STM32_ASSER
6、T=yMisc on STM32Cube HALsConfiguring a STM32 based board1-Select a STM32 partIdentify a supported STM32 part11 Series:STM32H7 SoC variant:B3 Pin count:Not used:X SoC Package memory size:I In dts/arm/st/h7,look for stm32h7b3Xi.dtsiXSTM32H7B3I Add a memory size variant:Eg STM32H7B3 1MB Flash variant:A