cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 CubeMX 4.25 bug?

AndreaC
Associate III
Posted on March 28, 2018 at 19:27

When generating code using LL libraries for an STM32L011F4Ux MCU, I found that enabling DMA for USART2 RX and TX and selecting DMA channels 2 and 3 makes the Cube create non working code.

I checked the RM for this MCU and at chapter 10.4.7 'DMA channel selection register (DMA_CSELR)' I saw that channels 2 and 3 are not the right ones for USART2.

Anyway, the Cube lets you select the right channels (i.e. 4 and 5) and, with those, everything seems OK.

Can you please check?

Thanks,

Andrea

#stm32-cube #dma #stm32l011
1 ACCEPTED SOLUTION

Accepted Solutions
Houda GHABRI
ST Employee
Posted on May 18, 2018 at 11:46

Hi

Coccon.Andrea

,

I confirm it is a bug and it will be fixed next release.

Thanksfor rising this problem.

regards,

Houda

View solution in original post

4 REPLIES 4
Imen.D
ST Employee
Posted on April 03, 2018 at 16:37

Hello

Coccon.Andrea

You are right,I raised this issue internally to CubeMx team for fix.

Thank you for posting your finding.

Best Regards

Imen.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Houda GHABRI
ST Employee
Posted on May 03, 2018 at 16:28

Coccon.Andrea

Hi,

I'm not able to reproduce the problem, can you please send me the ioc ?

What did you mean by '

non working code'? That there is compilation error?

regards,

Houda

Posted on May 04, 2018 at 09:37

Hi Houda,

the code generated doesn't work because 2 and 3 are not the right channels to set when using USART2 in DMA mode.

0690X0000060ApJQAU.png

but, as you can see, Cube sets these channels when adding DMA.

Have a nice day,

Andrea

________________

Attachments :

Cube_DMA_issue.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxeP&d=%2Fa%2F0X0000000b0W%2F70Pm4kdu7K8T2SPHoe_FPq1LSin0YssmIIGlOmWKBOg&asPdf=false
Houda GHABRI
ST Employee
Posted on May 18, 2018 at 11:46

Hi

Coccon.Andrea

,

I confirm it is a bug and it will be fixed next release.

Thanksfor rising this problem.

regards,

Houda