There is some missing logic in the G431 DMA defines.
STM32_DMA1_CH8_HANDLER and STM32_DMA1_CH8_HANDLER are defined but not their streams which results in
Code: Select all
ChibiOS/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c: In function 'Vector1CC':
ChibiOS/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c:542:21: error: 'STM32_DMA2_STREAM8' undeclared (first use in this function); did you mean 'STM32_DMA2_STREAM1'?
542 | dmaServeInterrupt(STM32_DMA2_STREAM8);
| ^~~~~~~~~~~~~~~~~~
| STM32_DMA2_STREAM1
STM32_DMA1_CH7_HANDLER and STM32_DMA1_CH8_HANDLER should not be defined in this case
Same thing with DMA2.
This applies on stable_20.3.x and master
edit: it seems like for other platforms these are defined in stm32_registry.h, here it's in stm32_isr.h