decaday / py32f0_cmake_template

PY32F0 MCU CMake project template. Using GCC, cross-platform.Supported PY32F030,PY32F002/3,XL32,AIR001
4 stars 0 forks source link

Buide Error:unknown type name 'DMA_Channel_TypeDef' #1

Open CrossMyMind opened 1 week ago

CrossMyMind commented 1 week ago

[main] Building folder: py32f0_cmake_template-master all [build] Starting build [proc] Executing command: chcp [proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build p:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/build --config Debug --target all -j 14 -- [build] [ 3%] Building C object CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal.c.obj [build] [ 6%] Building C object CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc.c.obj [build] [ 9%] Building C object CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc_ex.c.obj [build] In file included from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/App/py32f0xx_hal_conf.h:147, [build] from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal.h:33, [build] from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal.c:39: [build] P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal_dma.h:116:3: error: unknown type name 'DMA_Channel_TypeDef' [build] 116 | DMA_Channel_TypeDef Instance; /!< Register base address / [build] | ^~~~~~~ [build] P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal_dma.h:136:3: error: unknown type name 'DMA_TypeDef' [build] 136 | DMA_TypeDef DmaBaseAddress; /!< DMA Channel Base Address / [build] | ^~~ [build] make.exe[2]: [CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal.c.obj] Error 1 [build] CMakeFiles/py32_cmake_template.elf.dir/build.make:89: recipe for target 'CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal.c.obj' failed [build] make.exe[2]: Waiting for unfinished jobs.... [build] [ 12%] Building C object CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_comp.c.obj [build] In file included from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/App/py32f0xx_hal_conf.h:147, [build] from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal.h:33, [build] from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc.c:72: [build] P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal_dma.h:116:3: error: unknown type name 'DMA_Channel_TypeDef' [build] 116 | DMA_Channel_TypeDef Instance; /!< Register base address / [build] | ^~~~~~~ [build] P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal_dma.h:136:3: error: unknown type name 'DMA_TypeDef' [build] 136 | DMA_TypeDef DmaBaseAddress; /!< DMA Channel Base Address / [build] | ^~~ [build] make.exe[2]: [CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc.c.obj] Error 1 [build] CMakeFiles/py32_cmake_template.elf.dir/build.make:103: recipe for target 'CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc.c.obj' failed [build] In file included from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/App/py32f0xx_hal_conf.h:147, [build] from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal.h:33, [build] from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc_ex.c:37: [build] P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal_dma.h:116:3: error: unknown type name 'DMA_Channel_TypeDef' [build] 116 | DMA_Channel_TypeDef Instance; /!< Register base address / [build] | ^~~~~~~ [build] P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal_dma.h:136:3: error: unknown type name 'DMA_TypeDef' [build] 136 | DMA_TypeDef DmaBaseAddress; /!< DMA Channel Base Address / [build] | ^~~ [build] CMakeFiles/py32_cmake_template.elf.dir/build.make:117: recipe for target 'CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc_ex.c.obj' failed [build] make.exe[2]: [CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_adc_ex.c.obj] Error 1 [build] In file included from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/App/py32f0xx_hal_conf.h:147, [build] from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal.h:33, [build] from P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_comp.c:164: [build] P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal_dma.h:116:3: error: unknown type name 'DMA_Channel_TypeDef' [build] 116 | DMA_Channel_TypeDef Instance; /!< Register base address / [build] | ^~~~~~~ [build] P:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/Drivers/PY32F0xx_HAL_Driver/Inc/py32f0xx_hal_dma.h:136:3: error: unknown type name 'DMA_TypeDef' [build] 136 | DMA_TypeDef DmaBaseAddress; /!< DMA Channel Base Address / [build] | ^~~ [build] CMakeFiles/py32_cmake_template.elf.dir/build.make:131: recipe for target 'CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_comp.c.obj' failed [build] make.exe[2]: [CMakeFiles/py32_cmake_template.elf.dir/Drivers/PY32F0xx_HAL_Driver/Src/py32f0xx_hal_comp.c.obj] Error 1 [build] CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/py32_cmake_template.elf.dir/all' failed [build] make.exe[1]: [CMakeFiles/py32_cmake_template.elf.dir/all] Error 2 [build] Makefile:90: recipe for target 'all' failed [build] make.exe: *** [all] Error 2 [proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --build p:/SYSTEM_FOLDER/DOCUMENTS/Stm32Cube_Projects/py32f0_cmake_template-master/build --config Debug --target all -j 14 -- exited with code: 2

decaday commented 1 week ago

Which MCU? Show me your py32f0.cmake and CMakeList.txt (if you edited)