Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32C0: provide support for SPI peripherals #81439

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

djiatsaf-st
Copy link
Collaborator

This PR adds SPI peripherals to work with STM32C011/31xx boards.

- stm32cO11/31 share the same spi peripheral

- include stm32_dma header to be able to configure
spi with dma config macros (STM32_DMA_PERIPH_TX,...)
in dts

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
@JarmouniA
Copy link
Collaborator

@djiatsaf-st Can we actually test it? See #73601 (comment)

@djiatsaf-st
Copy link
Collaborator Author

@djiatsaf-st Can we actually test it? See #73601 (comment)

Hello @JarmouniA ,

We still have a flash/ram overflow when testing on spi_loopback.

However, to check that everything is configured correctly on the C011/31 series, I created a sample based on the spi_loopback test by keeping only the necessary functions (spi_complete_loop, spi_complete_multiple) so as not to exceed the size of the ram and flash.

Soon we will add the C071 serie which has a larger ram and flash size

Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the board addition.
Since we won't be able to test nor build it this will remain dead code.

We'll ensure to enable test once C071 board will be available upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants