I've got a small project that I created using testhal/STM32Lxx/UART as a starting point for the build system. I modified it to use hardware specific to my project, etc.. I also added my own specific STM32L151 port.mk and .ld to specify 10k RAM for my device (again based on the existing one found in os/ports/GCC/ARMCMx/STM32L1xx/ld). As a sidenote, is it possible to get STM32L151x families added to ChibiOS for the benefit of all?
I unzipped the 2.6.5 release, and altered my Makefile to bring in the changes I noticed in the testhal/STM32Lxx/UART project (only keeping those that are specific to my project)
When I attempt to build, it fails with:
Code: Select all
Compiling hal.c
In file included from ../os/hal/include/i2c.h:99:0,
from ../os/hal/include/hal.h:59,
from ../os/hal/src/hal.c:37:
../os/hal/platforms/STM32/I2Cv1/i2c_lld.h:233:2: error: #error "invalid DMA stream associated to I2C1 RX"
../os/hal/platforms/STM32/I2Cv1/i2c_lld.h:239:2: error: #error "invalid DMA stream associated to I2C1 TX"
(it also fails this way if I left my Makefile as it was in ChibiOS-2.6.3).
I'm looking for advice on how to correct this. The relevant settings in my mcuconf.h are (well, what I think are relevant :
Code: Select all
mcuconf.h: #define STM32_I2C_USE_I2C1 TRUE
mcuconf.h:#define STM32_I2C_I2C1_IRQ_PRIORITY 5
mcuconf.h:#define STM32_I2C_I2C1_DMA_PRIORITY 3
mcuconf.h:#define STM32_I2C_I2C1_DMA_ERROR_HOOK() chSysHalt()