Code: Select all
Compiling board.c
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c: In function 'i2c_lld_start':
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:922:18: error: 'union <anonymous>' has no member named 'bdma'; did you mean 'dma'?
i2cp->rx.bdma = bdmaStreamAllocI(STM32_I2C_I2C4_RX_BDMA_STREAM,
^~~~
dma
In file included from ../ChibiOS/os/rt/include/ch.h:107:0,
from ../ChibiOS/os/hal/osal/rt-nil/osal.h:32,
from ../ChibiOS/os/hal/include/hal.h:28,
from ../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:25:
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:926:32: error: 'union <anonymous>' has no member named 'bdma'; did you mean 'dma'?
osalDbgAssert(i2cp->rx.bdma != NULL, "unable to allocate stream");
^
../ChibiOS/os/rt/include/chdebug.h:130:11: note: in definition of macro 'chDbgAssert'
if (!(c)) { \
^
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:926:9: note: in expansion of macro 'osalDbgAssert'
osalDbgAssert(i2cp->rx.bdma != NULL, "unable to allocate stream");
^~~~~~~~~~~~~
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:927:18: error: 'union <anonymous>' has no member named 'bdma'; did you mean 'dma'?
i2cp->tx.bdma = bdmaStreamAllocI(STM32_I2C_I2C4_TX_BDMA_STREAM,
^~~~
dma
In file included from ../ChibiOS/os/rt/include/ch.h:107:0,
from ../ChibiOS/os/hal/osal/rt-nil/osal.h:32,
from ../ChibiOS/os/hal/include/hal.h:28,
from ../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:25:
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:931:32: error: 'union <anonymous>' has no member named 'bdma'; did you mean 'dma'?
osalDbgAssert(i2cp->tx.bdma != NULL, "unable to allocate stream");
^
../ChibiOS/os/rt/include/chdebug.h:130:11: note: in definition of macro 'chDbgAssert'
if (!(c)) { \
^
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:931:9: note: in expansion of macro 'osalDbgAssert'
osalDbgAssert(i2cp->tx.bdma != NULL, "unable to allocate stream");
^~~~~~~~~~~~~
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:935:39: error: 'union <anonymous>' has no member named 'bdma'; did you mean 'dma'?
bdmaSetRequestSource(i2cp->rx.bdma, STM32_DMAMUX2_I2C4_RX);
^~~~
dma
../ChibiOS/os/hal/ports/STM32/LLD/I2Cv3/hal_i2c_lld.c:936:39: error: 'union <anonymous>' has no member named 'bdma'; did you mean 'dma'?
bdmaSetRequestSource(i2cp->tx.bdma, STM32_DMAMUX2_I2C4_TX);
^~~~
dma
../ChibiOS/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:189: recipe for target 'build/obj/hal_i2c_lld.o' failed