Page 1 of 1

Invalid DMA stream associated to I2C1 RX/TX

Posted: Sat Oct 05, 2013 4:33 pm
by pito
Hi, moving to chibi3.0 with my source (stm32VL) and getting this error:

Code: Select all

Compiling hal.c
In file included from C:\ChibiStudio\Chibi30/os/hal/include/i2c.h:89:0,
                 from C:\ChibiStudio\Chibi30/os/hal/include/hal.h:53,
                 from C:\ChibiStudio\Chibi30/os/hal/src/hal.c:29:
C:\ChibiStudio\Chibi30/os/hal/ports/STM32/I2Cv1/i2c_lld.h:240:2: error: #error "invalid DMA stream associated to I2C1 RX"
C:\ChibiStudio\Chibi30/os/hal/ports/STM32/I2Cv1/i2c_lld.h:246:2: error: #error "invalid DMA stream associated to I2C1 TX"


What else I need to setup and where, plz?

Re: Invalid DMA stream associated to I2C1 RX/TX

Posted: Sat Oct 05, 2013 4:59 pm
by pito
It seems we miss definitions of

Code: Select all

STM32_I2C1_RX_DMA_MSK
STM32_I2C1_TX_DMA_MSK

in stm32_registry.h ..

Re: Invalid DMA stream associated to I2C1 RX/TX

Posted: Sat Oct 05, 2013 7:36 pm
by Giovanni
Hi,

Thanks fixed. The F1 platform is not yet tested in 3.0 even if drivers are largely the same, please report any problem you may find.

Giovanni

Re: Invalid DMA stream associated to I2C1 RX/TX

Posted: Thu Oct 24, 2013 3:07 pm
by Legath
Hi

i have found the same issue with spi on the same board
May be i need additional defines?
i have found
os/hal/platforms/STM32L1xx/hal_lld.h:248:#define STM32_SPI2_RX_DMA_MSK STM32_DMA_STREAM_ID_MSK(1, 4)


but STM32_SPI_SPI2_RX_DMA_STREAM not defined in all cases,
because STM32_ADVANCED_DMA disabled for l152 and this is not f3 and f0 family

Re: Invalid DMA stream associated to I2C1 RX/TX

Posted: Thu Oct 24, 2013 3:29 pm
by Giovanni
hi,

STM32_ADVANCED_DMA is defined in a different file for F0 and F3 (stm32_registry.h). I don't understand your other point. In general make sure to use the correct mcuconf.h file, it changes from family to family.

Giovanni

Re: Invalid DMA stream associated to I2C1 RX/TX

Posted: Thu Oct 24, 2013 3:42 pm
by Legath
Hi Giovanni,

you are right again. Makefile project compile successfully.
i butterfingered :D . i 'll check eclipse and generic build environment.

Thanks for your efforts.