Errors with I3C_Controller_Direct_Command_DMA example desc_target1.h
- April 22, 2024
- 1 reply
- 2185 views
I am pretty new to STM32CubeIDE and am trying to build the example project for I3C_Controller_Direct_Command_DMA using the STM32Cube_FW_H5_V1.2.0>Projects>NUCLEO-H563ZI>Examples>I3C>I3C_Controller_Direct_Command_DMA project example and following this example document.
Following the document, i needed to have this code in the desc_target1.h so i started there.

At first, this header was not in my project, or i couldn't access it, so i imported it manually which fixed that problem and this is the code that was in it by default. The problem I'm facing is the errors I am getting. "unknown type name 'TargetDesc_TypeDef'" "'DEVICE_ID1' undeclared here (not in a function)" "excess elements in scalar initializer" etc.

Am i not including this header file correctly? Am i missing more files for my project? Am i not following the example correctly? Please if anyone has any insight i would greatly appreciate it.
