STM32G431 DMA defines error Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
mobyfab
Posts: 471
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 20 times
Been thanked: 28 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: 13527
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 861 times
Been thanked: 743 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 6 guests