STM32G431 DMA defines error Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Le Mans, France
Has thanked: 21 times
Been thanked: 30 times

STM32G431 DMA defines error  Topic is solved

Postby mobyfab » Fri Mar 19, 2021 11:36 am

Ciao!

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

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32G431 DMA defines error

Postby Giovanni » Sat Apr 24, 2021 7:01 am

Hi,

Fixed as bug #1155.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 22 guests