Skip to main content
Associate II
April 22, 2024
Solved

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.

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.

This topic has been closed for replies.
Best answer by Foued_KH

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

 

1 reply

Foued_KH
Foued_KHBest answer
ST Employee
April 23, 2024

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.
JRM_02Author
Associate II
April 23, 2024

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