cancel
Showing results for 
Search instead for 
Did you mean: 

DAC DMA is giving error in stm32f3xx_hal_msp.c

kl4971tse
Associate II
Posted on November 27, 2016 at 01:50

Hello!

I am currently using stm32mx cube to create sine wave through the DAC. When I am building the project, I am receiving an error in regards to the stm32f3xx_hal_msp.c which should not require any modifications on my end. It's giving an error for ''../Src/stm32f3xx_hal_msp.c(118): error: #29: expected an expression if ( _HAL_DMA_REMAP_CHANNEL_ENABLE(HAL_REMAPDMA_TIM7_DAC1_CH2_DMA1_CH4) != HAL_OK)'' Is this a bug and if so, is there a workaround in place? Thanks!


if (__HAL_DMA_REMAP_CHANNEL_ENABLE(HAL_REMAPDMA_TIM7_DAC1_CH2_DMA1_CH4) != HAL_OK)
{
Error_Handler();
}


#stm32
1 REPLY 1