Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buide Error:unknown type name 'DMA_Channel_TypeDef' #1

Open
CrossMyMind opened this issue Jul 6, 2024 · 1 comment
Open

Buide Error:unknown type name 'DMA_Channel_TypeDef' #1

CrossMyMind opened this issue Jul 6, 2024 · 1 comment

Comments

@CrossMyMind
Copy link

[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
Copy link
Owner

decaday commented Jul 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants