STM32CubeMX6.3.0 DAC+DMA+TIM
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?