Skip to main content
kl4971tse
Associate II
November 27, 2016
Question

DAC DMA is giving error in stm32f3xx_hal_msp.c

  • November 27, 2016
  • 1 reply
  • 487 views
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
    This topic has been closed for replies.

    1 reply

    slimen
    Visitor II
    November 28, 2016