Skip to main content
bmo.11
Visitor II
November 23, 2021
Solved

STM32CubeMX6.3.0 DAC+DMA+TIM

  • November 23, 2021
  • 2 replies
  • 1090 views

I use STM32CubeMX6.3.0 to config DAC ,DMA ,TIM2,and gererate projec for MDK,

the initial order is below(auto create by STM32CubeMX6.3.0):

 MX_GPIO_Init();

MX_DAC_Init();

MX_DMA_Init();

 MX_TIM2_Init();

​then I create a buffer for sin wave,data,and start DAC:

HAL_TIM_Base_Start(&htim2);

 HAL_DAC_Start_DMA(&hdac,DAC_CHANNEL_1,(uint32_t *)sin_wave,256,DAC_ALIGN_12B_R);

​but no wave !

I must change the initial order manually to below:

 MX_GPIO_Init();

MX_DMA_Init();

MX_DAC_Init();

 MX_TIM2_Init();

then the sin wave is generated by DAC+DMA+TIM2.

is this a bug for STM32CubeMX6.3.0?

This topic has been closed for replies.
Best answer by Sara BEN HADJ YAHYA

Hello @bmo.1​ ,

Thanks for your feedback,

This is a known issue and it is already reported to the development team.

I will keep you posted with the updates.

If your question is answered, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Regards,

Sara.

2 replies

Sara BEN HADJ YAHYA
Technical Moderator
November 23, 2021

Hello @bmo.1​ ,

Thanks for your feedback,

This is a known issue and it is already reported to the development team.

I will keep you posted with the updates.

If your question is answered, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Regards,

Sara.

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.
Amel NASRI
Technical Moderator
December 3, 2021

Hi @bmo.1​ ,

This issue should be already fixed with STM32CubeMX 6.4 available currently.

-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.