Code: Select all
In file included from ../../../os/hal/include/hal_i2c.h:85:0,
from ../../../os/hal/include/hal.h:135,
from ../../../os/hal/src/hal.c:25:
../../../os/hal/ports/STM32/LLD/I2Cv2/hal_i2c_lld.h:321:2: error: #error "invalid DMA stream associated to I2C4 RX"
#error "invalid DMA stream associated to I2C4 RX"
^~~~~
../../../os/hal/ports/STM32/LLD/I2Cv2/hal_i2c_lld.h:327:2: error: #error "invalid DMA stream associated to I2C4 TX"
#error "invalid DMA stream associated to I2C4 TX"
^~~~~
make: *** [../../../os/common/startup/ARMCMx/compilers/GCC/rules.mk:232: build/obj/hal.o] Error 1
It seems that the DMA channels for I2C4 are not valid. I haven't study this code and I'm not sure if this is valid, but if I change the DMA streams to the values in the attached patch the build error is gone.