H7 Build Broken? Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
mrandy
Posts: 7
Joined: Sun Mar 29, 2020 1:44 am
Been thanked: 1 time

H7 Build Broken?

Post by mrandy »

I think that revision 13499 broke my build for a STM32H7 project. I get these errors, which aren't present when using the previous revision:

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
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: H7 Build Broken?

Post by FXCoder »

Hi,
Thanks for the report.
It will be fixed in trunk ASAP.
BTW were you using I2C4 or just had it enabled but not in active use?
--
Bob
mrandy
Posts: 7
Joined: Sun Mar 29, 2020 1:44 am
Been thanked: 1 time

Re: H7 Build Broken?

Post by mrandy »

It's currently enabled but not referenced anywhere. I plan on using it eventually, because the board I'm writing code for has a device on I2C4, it's not in my code at the moment.
User avatar
FXCoder
Posts: 403
Joined: Sun Jun 12, 2016 4:10 am
Has thanked: 188 times
Been thanked: 134 times

Re: H7 Build Broken?

Post by FXCoder »

Fixed in trunk as bug #1082.
Post Reply