2021-11-23 12:35 AM
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?
Solved! Go to Solution.
2021-11-23 12:47 AM
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.
2021-11-23 12:47 AM
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.
2021-12-03 08:19 AM
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.