STM32 v.1. DMA Driver Error

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: STM32 v.1. DMA Driver Error

Post by alexblack »

It seems there are mistakes in ...\ports\STM32F0xx\hal_lld.c:

Code: Select all

199   /* Check on channel 7 of DMA1.*/
200   dmaServeInterrupt(STM32_DMA1_STREAM7);
201
202   /* Check on channel 3 of DMA2.*/
203   dmaServeInterrupt(STM32_DMA1_STREAM3);
204
205   /* Check on channel 4 of DMA2.*/
206   dmaServeInterrupt(STM32_DMA1_STREAM4);
207
208   /* Check on channel 5 of DMA2.*/
209   dmaServeInterrupt(STM32_DMA1_STREAM5);

Lines 203, 206, 209 perhaps must contain STM32_DMA2_STREAMxxx in this case, not STM32_DMA1...

Now I working on STM32F303 and new trunk seems ok, I will test it now...
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: STM32 v.1. DMA Driver Error

Post by alexblack »

I checked driver on STM32F303 - it works.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32 v.1. DMA Driver Error

Post by Giovanni »

Fixed those lines... I love rushing changes.

Giovanni
Post Reply