Skip to main content
AndreaC
Associate III
March 28, 2018
Solved

STM32 CubeMX 4.25 bug?

  • March 28, 2018
  • 4 replies
  • 1162 views
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
This topic has been closed for replies.
Best answer by Houda GHABRI
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

4 replies

ST Technical Moderator
April 3, 2018
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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Houda GHABRI
ST Employee
May 3, 2018
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

AndreaC
AndreaCAuthor
Associate III
May 4, 2018
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
Houda GHABRIBest answer
ST Employee
May 18, 2018
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