Hi,
I am attempting to use VisualGDB to build an STM32CubeMx project without success.
My system:
Windows 7
Visual Studio 2015 Community Edition
STm32F429I-DISCO board
I have not enabled DMA in the Cube software. Nevertheless, when I build, I get a several warnings and then an error concerning DMA.
Warning (e.g.): Warning ignoring old recipe for target `Debug/stm32f4xx_hal_gpio.o’ AutoPulse_F4_CubeGenerated
Error: Error ‘HAL_DMA_ERROR_PARAM’ undeclared (first use in this function) AutoPulse_F4_CubeGenerated D:\Projects\AutoPulse_F4_CubeGenerated\AutoPulse_F4_CubeGenerated\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_dma.c 288
As nearly as I can determine, this file should not be compiled at all. It is ifdef’d with HAL_DMA_MODULE_ENABLED. I did not enable DMA.
I attempted to fix this problem by placing “-UHAL_DMA_MODULE_ENABLED” in the GCC command line. That had no effect.
It is not obvious to me where this variable is being defined. Any ideas on how to approach this issue?
Thanks in advance…