-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
Waiting for responseWaiting for author's responseWaiting for author's responsearea: SPISPI busSPI busbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32ST Micro STM32priority: lowLow impact/importance bugLow impact/importance bug
Description
Describe the bug
It seems that support for STM32WBA5x under zephyr/drivers/spi/spi_ll_stm32.c is lacking and giving compilation errors during compilation.
Regression
- This is a regression.
Steps to reproduce
To reproduce it you need to compile for one of the STM32WBA5x variants and you need to have at least one peripheral using the SPI in your device tree.
Relevant log output
zephyr/drivers/spi/spi_ll_stm32.h: In function 'll_func_tx_is_not_full':
zephyr/drivers/spi/spi_ll_stm32.h:111:16: warning: implicit declaration of function 'LL_SPI_IsActiveFlag_TXE'; did you mean 'LL_SPI_IsActiveFlag_TXC'? [-Wimplicit-function-declaration]
111 | return LL_SPI_IsActiveFlag_TXE(spi);
| ^~~~~~~~~~~~~~~~~~~~~~~
| LL_SPI_IsActiveFlag_TXC
zephyr/drivers/spi/spi_ll_stm32.h: In function 'll_func_rx_is_not_empty':
zephyr/drivers/spi/spi_ll_stm32.h:120:16: warning: implicit declaration of function 'LL_SPI_IsActiveFlag_RXNE'; did you mean 'LL_SPI_IsActiveFlag_RXWNE'? [-Wimplicit-function-declaration]
120 | return LL_SPI_IsActiveFlag_RXNE(spi);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| LL_SPI_IsActiveFlag_RXWNE
zephyr/drivers/spi/spi_ll_stm32.h: In function 'll_func_enable_int_tx_empty':
zephyr/drivers/spi/spi_ll_stm32.h:129:9: warning: implicit declaration of function 'LL_SPI_EnableIT_TXE'; did you mean 'LL_SPI_EnableIT_TXP'? [-Wimplicit-function-declaration]
129 | LL_SPI_EnableIT_TXE(spi);
| ^~~~~~~~~~~~~~~~~~~
| LL_SPI_EnableIT_TXP
zephyr/drivers/spi/spi_ll_stm32.h: In function 'll_func_enable_int_rx_not_empty':
zephyr/drivers/spi/spi_ll_stm32.h:138:9: warning: implicit declaration of function 'LL_SPI_EnableIT_RXNE'; did you mean 'LL_SPI_EnableIT_RXP'? [-Wimplicit-function-declaration]
138 | LL_SPI_EnableIT_RXNE(spi);
| ^~~~~~~~~~~~~~~~~~~~
| LL_SPI_EnableIT_RXP
zephyr/drivers/spi/spi_ll_stm32.h: In function 'll_func_enable_int_errors':
zephyr/drivers/spi/spi_ll_stm32.h:151:9: warning: implicit declaration of function 'LL_SPI_EnableIT_ERR'; did you mean 'LL_SPI_EnableIT_FRE'? [-Wimplicit-function-declaration]
151 | LL_SPI_EnableIT_ERR(spi);
...
zephyr/drivers/spi/spi_ll_stm32.c: In function 'spi_stm32_get_err':
zephyr/drivers/spi/spi_ll_stm32.c:61:44: error: 'LL_SPI_SR_CRCERR' undeclared (first use in this function); did you mean 'LL_SPI_SR_CRCE'?
61 | #define SPI_STM32_ERR_MSK (LL_SPI_SR_UDR | LL_SPI_SR_CRCERR | LL_SPI_SR_MODF | \
| ^~~~~~~~~~~~~~~~
zephyr/drivers/spi/spi_ll_stm32.c:61:44: note: in definition of macro 'SPI_STM32_ERR_MSK'
61 | #define SPI_STM32_ERR_MSK (LL_SPI_SR_UDR | LL_SPI_SR_CRCERR | LL_SPI_SR_MODF | \
| ^~~~~~~~~~~~~~~~
zephyr/drivers/spi/spi_ll_stm32.c:61:44: note: each undeclared identifier is reported only once for each function it appears in
61 | #define SPI_STM32_ERR_MSK (LL_SPI_SR_UDR | LL_SPI_SR_CRCERR | LL_SPI_SR_MODF | \
| ^~~~~~~~~~~~~~~~
zephyr/drivers/spi/spi_ll_stm32.c:61:44: note: in definition of macro 'SPI_STM32_ERR_MSK'
61 | #define SPI_STM32_ERR_MSK (LL_SPI_SR_UDR | LL_SPI_SR_CRCERR | LL_SPI_SR_MODF | \
| ^~~~~~~~~~~~~~~~
zephyr/drivers/spi/spi_ll_stm32.c:62:44: error: 'LL_SPI_SR_FRE' undeclared (first use in this function); did you mean 'LL_SPI_SR_TIFRE'?
62 | LL_SPI_SR_OVR | LL_SPI_SR_FRE)
| ^~~~~~~~~~~~~
zephyr/drivers/spi/spi_ll_stm32.c:62:44: note: in definition of macro 'SPI_STM32_ERR_MSK'
62 | LL_SPI_SR_OVR | LL_SPI_SR_FRE)
Impact
Showstopper – Prevents release or major functionality; system unusable.
Environment
OS: Ubuntu 24.04
Toolchain: Zephyr 0.17.1
Commit: main branch
Additional Context
No response
Metadata
Metadata
Assignees
Labels
Waiting for responseWaiting for author's responseWaiting for author's responsearea: SPISPI busSPI busbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32ST Micro STM32priority: lowLow impact/importance bugLow impact/importance bug