cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX6.3.0 DAC+DMA+TIM

bmo.11
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

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.

View solution in original post

2 REPLIES 2
Sara BEN HADJ YAHYA
ST Employee

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.

Amel NASRI
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.