cancel
Showing results for 
Search instead for 
Did you mean: 

IN STM32N6 Model Zoo Transplant the AI camera code from modelzoo into the project generated by Touchgfx

dianzijun
Associate II

I have been using STM32N6 to conduct model training and deployment for the model zoo. Now, I want to transfer the generated code to my TouchGFX project for embedded use in the CubeIDE environment. However, when I am transferring several files, before the transfer, the original files did not have this error, but after the transfer, there is this error and it is particularly common, mostly for the official-generated code. As follows:

  When these files are transferred:

dianzijun_0-1749104891572.png

After the transplantation was completed, an error occurred:

dianzijun_1-1749105037038.png

./../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:893:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

893 | HAL_StatusTypeDef HAL_SYSCFG_GetWriteQosNP1(uint32_t *pQosValue);

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:895:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

895 | HAL_StatusTypeDef HAL_SYSCFG_GetReadQosNP1(uint32_t *pQosValue);

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:898:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

898 | HAL_StatusTypeDef HAL_SYSCFG_GetWriteQosNP2(uint32_t *pQosValue);

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:900:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

900 | HAL_StatusTypeDef HAL_SYSCFG_GetReadQosNP2(uint32_t *pQosValue);

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:903:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

903 | HAL_StatusTypeDef HAL_SYSCFG_GetwriteQosCPUSS(uint32_t *pQosValue);

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:905:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

905 | HAL_StatusTypeDef HAL_SYSCFG_GetReadQosCPUSS(uint32_t *pQosValue);

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:934:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

934 | HAL_StatusTypeDef HAL_SYSCFG_ConfigVDDIOCompensationCell(uint32_t Selection, uint32_t Code,

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:937:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

937 | HAL_StatusTypeDef HAL_SYSCFG_GetVDDIOCompensationCell(uint32_t Selection, const uint32_t *pCode, uint32_t *pNmosValue,

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:946:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

946 | HAL_StatusTypeDef HAL_SYSCFG_ConfigVDDCompensationCell(uint32_t Code, uint32_t NmosValue, uint32_t PmosValue);

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

../../../Drivers/STM32N6xx_HAL_Driver/Inc/stm32n6xx_hal.h:951:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_TIM_StateTypeDef'?

951 | HAL_StatusTypeDef HAL_SYSCFG_GetVDDCompensationCell(uint32_t Code, uint32_t *pNmosValue,

| ^~~~~~~~~~~~~~~~~

| HAL_TIM_StateTypeDef

In file included from C:/Users/dell/Desktop/N6/n6_touchgfx/n6_cs/STM32CubeIDE/Appli/AI_bsp/Camera_Middleware/inc/cmw_camera_conf.h:33,

from C:/Users/dell/Desktop/N6/n6_touchgfx/n6_cs/STM32CubeIDE/Appli/AI_bsp/Camera_Middleware/inc/cmw_camera.h:29,

from C:/Users/dell/Desktop/N6/n6_touchgfx/n6_cs/STM32CubeIDE/Appli/AI_bsp/Camera_Middleware/inc/cmw_utils.h:23:

C:/Users/dell/Desktop/N6/n6_touchgfx/n6_cs/STM32CubeIDE/Appli/AI_bsp/Camera_Middleware/STM32N6570-DK/inc/stm32n6570_discovery_bus.h:28:10: fatal error: stm32n6570_discovery_conf.h: No such file or directory

28 | #include "stm32n6570_discovery_conf.h"

| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

make[1]: *** [AI_bsp/Camera_Middleware/src/subdir.mk:25: AI_bsp/Camera_Middleware/src/cmw_utils.o] Error 1

make: *** [makefile:101: all] Error 2

"make -j20 all" terminated with exit code 2. Build might be incomplete.

 

14:29:56 Build Failed. 467 errors, 8 warnings. (took 22s.603ms)

 

And there are over four hundred such error reports scattered across multiple folders.

Looking forward to the answers from the experts.

 

 

 

1 REPLY 1
mathiasmarkussen
ST Employee

It looks like an include path mismatch in the IDE.

Are the transplanted files placed identically (in relation to the drivers folder) in both projects?

If so, compare the include paths set in CubeIDE for both projects, and make sure that there is a definition that matches you project.

Also note that the TouchGFX project does not include all drivers, you will need to enable any peripherals you use in addition to the ones used by TouchGFX in CubeMX. If you are using the BSP drivers you will need to add them manually as well.