2018-03-28 10:27 AM
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 #stm32l011Solved! Go to Solution.
2018-05-18 02:46 AM
Hi
Coccon.Andrea
,I confirm it is a bug and it will be fixed next release.
Thanksfor rising this problem.
regards,
Houda
2018-04-03 07:37 AM
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.
2018-05-03 07:28 AM
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
2018-05-04 02:37 AM
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.
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=false2018-05-18 02:46 AM
Hi
Coccon.Andrea
,I confirm it is a bug and it will be fixed next release.
Thanksfor rising this problem.
regards,
Houda