Question
Bug CubeMX 4.17 STM32F303 after emigration
Posted on October 14, 2016 at 11:12
Hello.
i am using Cube MX 1.17 and the firmware package 1.6 on the STM32F303xC. After emigration from the related CubeMX version to the new i am getting a syntax error by new compiling the code. The code phrase is in the created adc.c from CubeMX:if (__HAL_DMA_REMAP_CHANNEL_ENABLE(HAL_REMAPDMA_ADC24_DMA2_CH34) != HAL_OK)
{
Error_Handler();
}
the error message is:
STM32PBoard/Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h:651:57: error: expected expression before 'do'
#define __HAL_DMA_REMAP_CHANNEL_ENABLE(__DMA_REMAP__) do {assert_param(IS_DMA_REMAP((__DMA_REMAP__)))