2024-06-07 07:54 AM
i'm using the AC6.16 compiler and keil 5.34.
i'd like to use DMA in UART,and the file dma.c occured in both CM4 and CM7 folder(UART is attached to cortex-m4).but when i want to compile CM4 and CM7 project,both have said that "multiply defined".
how can i do to resolve?thx.
Solved! Go to Solution.
2024-06-10 02:14 AM - edited 2024-06-10 03:34 AM
Hello,
In your project you added two dma.c file instances and that's normal. You need to add just one dma.c instance to your project as a common file. You can separate it from CMx/Core tree.
For example:
system_stm32h7xx.c is a common file for both CM4 and CM7:
*
See STM32H7 Cube package in github: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H745ZI-Q/Examples/GPIO/GPIO_EXTI/Common/Src
2024-06-10 02:14 AM - edited 2024-06-10 03:34 AM
Hello,
In your project you added two dma.c file instances and that's normal. You need to add just one dma.c instance to your project as a common file. You can separate it from CMx/Core tree.
For example:
system_stm32h7xx.c is a common file for both CM4 and CM7:
*
See STM32H7 Cube package in github: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H745ZI-Q/Examples/GPIO/GPIO_EXTI/Common/Src