cancel
Showing results for 
Search instead for 
Did you mean: 

Errors with I3C_Controller_Direct_Command_DMA example desc_target1.h

JRM_02
Associate II

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.

JRM_02_1-1713818118621.png

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.

JRM_02_0-1713817905842.png

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Foued_KH
ST Employee

Hello @JRM_02 , 

You need only to add to main.h : 

Foued_KH_0-1713882194585.png


Check this WIKI : Getting started with I3C - stm32mcu

 

I hope it helps!
Foued

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Foued_KH
ST Employee

Hello @JRM_02 , 

You need only to add to main.h : 

Foued_KH_0-1713882194585.png


Check this WIKI : Getting started with I3C - stm32mcu

 

I hope it helps!
Foued

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you so much! the WIKI is a LOT a more clear. Appreciate the help!