How to add support for STM32H7B0 SoC to Zephyr #stm32


Laura
 

This is my first time trying to add support for a board and using Zephyr RTOS, so any help would be appreciated:

I believe Zephyr RTOS already has support for my architecture (ARM), CPU core (Arm Cortex-M7), SoC Family (STMicro STM32) and SoC Series (STM32H7).
However, I believe I need to add support for my specific SoC named STM32H7B0 because its not listed under the supported boards and its no where in the source code.

I looked at the commit for an existing supported board (STM32H725/735) to try to figure out what to do https://github.com/zephyrproject-rtos/zephyr/commit/08a39c37dda672d61eb4646ac4798d0d50ce0900

My questions are:

Q1.
The various config files and dts files in the commit reference the board by names. Where would I get the names for what I should call my board (STM32H725/735). 
For example the dts file for above board has "compatible = "st,stm32h735g-disco";". Where do I find what this is called for my board?
Same thing for the board name listed in
boards/arm/stm32h735g_disco/Kconfig.board

Q2. Is following the commit above the right path for how to add a new SoC board to Zephyr or are there other steps I have to take?

Thanks
-Laura


Francois RAMU
 

Hi Laura,

yes, That's the way to proceed : like the link you mention

adding the new device in the ./dts/arm/st/h7
config the ./soc/arm/st_stm32/stm32h7/Kconfig.defconfig.stm32h7b0xx
create  the board entry in the ./boards/arm
using the Reference_manual stm32h7a37b3-and-stm32h7b0

Note that I do not see (yet ?) any reference to a stm32H7B0x board on the www.st.com
(you can also take the stm32HB3i-DK disco kit as a example)

Regards