Skip to main content
Seldon
Associate
April 29, 2022
Solved

BUG in STM32CubeMX: usart code generation in wrong order when enable usart dma

  • April 29, 2022
  • 3 replies
  • 1797 views

My Firmware Package name and version: STM32Cube FW_F1 v1.8.4

Bug detail:

After code generates, the code order is:0693W00000LzQNWQA3.pngIn this order, receiving message of the usart will get some bugs, eg: only can receive the last byte...

I let `the MX_DMA_Init();` become the first one solve the problem, but when I genearted code next time, this order will appear again...

This topic has been closed for replies.
Best answer by Amel NASRI

Hi @晓栋 �?�​ ,

This is a known issue that should be fixed for new generated projects (from scratch) using STM32CubeMX 6.5.0.

In case you are importig an old project, please refer to this content MX_DMA_Init order in the main.c file generated by STM32CubeMX, How to fix?

-Amel

3 replies

Seldon
SeldonAuthor
Associate
April 29, 2022

Hope this bug can be fixed:beaming_face_with_smiling_eyes:

Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
May 6, 2022

Hi @晓栋 �?�​ ,

This is a known issue that should be fixed for new generated projects (from scratch) using STM32CubeMX 6.5.0.

In case you are importig an old project, please refer to this content MX_DMA_Init order in the main.c file generated by STM32CubeMX, How to fix?

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
Seldon
SeldonAuthor
Associate
May 25, 2022

Thanks for your replay!!:smiling_face_with_smiling_eyes: I have fixed this problem.​