STM32_DMA1_CH4/5_CMASK redefined in L011 demo
Posted: Sat Dec 05, 2026 7:07 pm
Doing a test compile on the demos/STM32/NIL-STM32L011K4-NUCLEO32 project, I get a load of
Looks like it's defined to two different values as well. I'm using arm-none-eabi-gcc-16.2.1.
(edit) forgot to mention this is on ChibiOS_21.11.5.
Code: Select all
../os/hal/ports/STM32/STM32L0xx/stm32_registry.h:103:9: note: this is the location of the previous definition
103 | #define STM32_DMA1_CH5_CMASK 0x00000018U
| ^~~~~~~~~~~~~~~~~~~~
Compiling board.c
In file included from ../os/hal/ports/STM32/STM32L0xx/hal_lld.h:1232,
from ../os/hal/include/hal.h:263,
from ../os/hal/boards/ST_NUCLEO32_L011K4/board.c:22:
../os/hal/ports/STM32/STM32L0xx/stm32_isr.h:78:9: warning: 'STM32_DMA1_CH4_CMASK' redefined
78 | #define STM32_DMA1_CH4_CMASK 0x00000078U
| ^~~~~~~~~~~~~~~~~~~~
(edit) forgot to mention this is on ChibiOS_21.11.5.