Re: Implement SPI on a STM32f7


Tomasz Bursztyka
 

Hi Clemence,

SPI is supported on stm32f4 SoCs, the doc is probably not up to date.

Maybe it's just not enabled on the board's dts file.
But on SoC level it is, see dts/arm/st/stm32f407.dtsi which includes
dts/arm/st/stm32f405.dtsi including itself: dts/arm/st/stm32f401.dtsi

Tomasz

Hello,

I am trying to implement SPI on the STM32f4 discovery (STM32f407).

On the doc of Zephyr, it is written the list of the hardware
features
supported by the board STM32f4 discovery (NVIC, UART, PINMUX, GPIO
aand
PWM) and SPI is not in this list.

I have already changed some files to add the SPI:

- $ENV{ZEPHYR_BASE}/boards/arm/pinmux.c

- $ENV{ZEPHYR_BASE}/boards/arm/stm32f4_disco.dts

- $ENV{ZEPHYR_BASE}/boards/arm/stm32f4_disco.yaml

- $ENV{ZEPHYR_BASE}/boards/arm/Kconfig.defconfig

- $ENV{ZEPHYR_BASE}/dts/arm/st/stm32f4-pinctrl.dtsi

- $ENV{ZEPHYR_BASE}/arch/arm/soc/st_stm32/stm32f4/soc.h

- prj.conf


I would like to know what I need to modify or add to implement SPI
for
the STM32f4 discovery please ?


Thanks,

Clemence


_______________________________________________
Zephyr-devel mailing list
Zephyr-devel@lists.zephyrproject.org
https://lists.zephyrproject.org/mailman/listinfo/zephyr-devel

Join devel@lists.zephyrproject.org to automatically receive all group messages.