AnsweredAssumed Answered

DAC DMA is giving error in stm32f3xx_hal_msp.c

Question asked by Aurora on Nov 27, 2016
Latest reply on Nov 28, 2016 by ForumSTM32.ForumSTM3
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();
}




Outcomes