cancel
Showing results for 
Search instead for 
Did you mean: 

Included path seems to not be included everywhere

jean_bonneau
Associate

Hi,
I am working on a preexisting TouchGFX projects, and i am trying to make it multicore so i am trying to build with OpenAMP to test if i didn't tweak wrong settings in CubeMX
I added the path in Project > Properties > C/C++ General > Preprocessor Include Paths , but when i try to build the project on CubeIDE it fails saying (the dots are to smoothen reading)
..../HMI__stm32/BENCH10/CM7/Core/Src/main.c:35:10: fatal error: openamp.h: No such file or directory

When building the first part (gcc) does include it 

arm-none-eabi-gcc "C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/Common/Src/system_stm32h7xx_dualcore_boot_cm4_cm7.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DCORE_CM7 -DUSE_HAL_DRIVER -DSTM32H757xx -c -I../../../CM7/OPENAMP -I../../../CM7/Core/Inc -I../../../CM7/FATFS/Target -I../../../CM7/FATFS/App -I../../../CM7/TouchGFX/App -I../../../CM7/TouchGFX/target/generated -I../../../CM7/TouchGFX/target -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I"C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/STM32CubeIDE/CM7/Drivers/STM32H7xx_HAL_Driver/Inc" -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Utilities/JPEG -I../../../Middlewares/Third_Party/FatFs/src -I../../../Middlewares/Third_Party/FreeRTOS/Source/include -I../../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I../../../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM7/USB_HOST/App -I../../../CM7/USB_HOST/Target -I../../../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../../../Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc -I../../CM7/../../CM7/Middlewares/ST/touchgfx/framework/include -I../../CM7/../../CM7/TouchGFX/generated/fonts/include -I../../CM7/../../CM7/TouchGFX/generated/gui_generated/include -I../../CM7/../../CM7/TouchGFX/generated/images/include -I../../CM7/../../CM7/TouchGFX/generated/texts/include -I../../CM7/../../CM7/TouchGFX/generated/videos/include -I../../CM7/../../CM7/TouchGFX/gui/include -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -include"C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/STM32CubeIDE/CM7/Application/User/Core/uart_handler.h" -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Drivers/CMSIS/system_stm32h7xx_dualcore_boot_cm4_cm7.d" -MT"Drivers/CMSIS/system_stm32h7xx_dualcore_boot_cm4_cm7.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Drivers/CMSIS/system_stm32h7xx_dualcore_boot_cm4_cm7.o"


Then the g++ too (This is the line directly after the previous)

arm-none-eabi-g++ "C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/CM7/TouchGFX/gui/src/common/FrontendApplication.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DDEBUG -DCORE_CM7 -DUSE_HAL_DRIVER -DSTM32H757xx -c -I../../../CM7/OPENAMP -I../../../CM7/Core/Inc -I../../../CM7/FATFS/Target -I../../../CM7/FATFS/App -I../../../CM7/TouchGFX/App -I../../../CM7/TouchGFX/target/generated -I../../../CM7/TouchGFX/target -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Utilities/JPEG -I../../../Middlewares/Third_Party/FatFs/src -I../../../Middlewares/Third_Party/FreeRTOS/Source/include -I../../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I../../../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM7/USB_HOST/App -I../../../CM7/USB_HOST/Target -I../../../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../../../Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc -I../../CM7/../../CM7/Middlewares/ST/touchgfx/framework/include -I../../CM7/../../CM7/TouchGFX/generated/fonts/include -I../../CM7/../../CM7/TouchGFX/generated/gui_generated/include -I../../CM7/../../CM7/TouchGFX/generated/images/include -I../../CM7/../../CM7/TouchGFX/generated/texts/include -I../../CM7/../../CM7/TouchGFX/generated/videos/include -I../../CM7/../../CM7/TouchGFX/gui/include -I"C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/STM32CubeIDE/CM7/Application/User/Core" -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -Os -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-use-cxa-atexit -Wall -femit-class-debug-always -fstack-usage -MMD -MP -MF"Application/User/gui/FrontendApplication.d" -MT"Application/User/gui/FrontendApplication.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Application/User/gui/FrontendApplication.o"


But after this, evertime gcc is used, it is not

arm-none-eabi-gcc "C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/CM7/USB_HOST/Target/usbh_conf.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DCORE_CM7 -DUSE_HAL_DRIVER -DSTM32H757xx -c -I../../../CM7/Core/Inc -I"C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/STM32CubeIDE/CM7/Application/User/Core" -I../../../CM7/FATFS/Target -I../../../CM7/FATFS/App -I../../../CM7/TouchGFX/App -I../../../CM7/TouchGFX/target/generated -I../../../CM7/TouchGFX/target -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I"C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/STM32CubeIDE/CM7/Drivers/STM32H7xx_HAL_Driver/Inc" -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Utilities/JPEG -I../../../Middlewares/Third_Party/FatFs/src -I../../../Middlewares/Third_Party/FreeRTOS/Source/include -I../../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I../../../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM7/USB_HOST/App -I../../../CM7/USB_HOST/Target -I../../../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../../../Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc -I../../CM7/../../CM7/Middlewares/ST/touchgfx/framework/include -I../../CM7/../../CM7/TouchGFX/generated/fonts/include -I../../CM7/../../CM7/TouchGFX/generated/gui_generated/include -I../../CM7/../../CM7/TouchGFX/generated/images/include -I../../CM7/../../CM7/TouchGFX/generated/texts/include -I../../CM7/../../CM7/TouchGFX/generated/videos/include -I../../CM7/../../CM7/TouchGFX/gui/include -include"C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/STM32CubeIDE/CM7/Application/User/Core/uart_handler.h" -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Application/User/USB_HOST/Target/usbh_conf.d" -MT"Application/User/USB_HOST/Target/usbh_conf.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Application/User/USB_HOST/Target/usbh_conf.o"


Right after this there are instances of g++ including it

arm-none-eabi-g++ "C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/CM7/TouchGFX/target/generated/HardwareMJPEGDecoder.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DDEBUG -DCORE_CM7 -DUSE_HAL_DRIVER -DSTM32H757xx -c -I../../../CM7/OPENAMP -I../../../CM7/Core/Inc -I../../../CM7/FATFS/Target -I../../../CM7/FATFS/App -I../../../CM7/TouchGFX/App -I../../../CM7/TouchGFX/target/generated -I../../../CM7/TouchGFX/target -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Utilities/JPEG -I../../../Middlewares/Third_Party/FatFs/src -I../../../Middlewares/Third_Party/FreeRTOS/Source/include -I../../../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2 -I../../../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM7/USB_HOST/App -I../../../CM7/USB_HOST/Target -I../../../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../../../Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc -I../../CM7/../../CM7/Middlewares/ST/touchgfx/framework/include -I../../CM7/../../CM7/TouchGFX/generated/fonts/include -I../../CM7/../../CM7/TouchGFX/generated/gui_generated/include -I../../CM7/../../CM7/TouchGFX/generated/images/include -I../../CM7/../../CM7/TouchGFX/generated/texts/include -I../../CM7/../../CM7/TouchGFX/generated/videos/include -I../../CM7/../../CM7/TouchGFX/gui/include -I"C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/STM32CubeIDE/CM7/Application/User/Core" -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -Os -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-use-cxa-atexit -Wall -femit-class-debug-always -fstack-usage -MMD -MP -MF"Application/User/TouchGFX/target/generated/HardwareMJPEGDecoder.d" -MT"Application/User/TouchGFX/target/generated/HardwareMJPEGDecoder.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Application/User/TouchGFX/target/generated/HardwareMJPEGDecoder.o"


And the last part (gcc) doesnt:

arm-none-eabi-gcc -mcpu=cortex-m7 -g3 -DDEBUG -c -I"C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/STM32CubeIDE/CM7/Application/User/Core" -I../../CM7/../../CM7/Middlewares/ST/touchgfx/framework/include -I../../CM7/../../CM7/TouchGFX/generated/fonts/include -I../../CM7/../../CM7/TouchGFX/generated/gui_generated/include -I../../CM7/../../CM7/TouchGFX/generated/images/include -I../../CM7/../../CM7/TouchGFX/generated/texts/include -I../../CM7/../../CM7/TouchGFX/generated/videos/include -I../../CM7/../../CM7/TouchGFX/gui/include -x assembler-with-cpp -MMD -MP -MF"Application/User/Startup/startup_stm32h757xihx.d" -MT"Application/User/Startup/startup_stm32h757xihx.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "Application/User/Startup/startup_stm32h757xihx.o" "../Application/User/Startup/startup_stm32h757xihx.s"



What i tried so far:
I tried regenerating code with TouchGFX designer,
i tired doing so after deleting /TouchGFX/target/generated, /TouchGFX/generated and /build, regenerating with Designer, clean on IDE and rebuild.
Under GPT supervision i tried tweaking settings, perhaps i did it wrong

It is my first time working on a stm project, so i am not familiar with the settings etc

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @jean_bonneau 

Could you please provide your IOC so I can review your configuration, identify what went wrong, and retest from my end  ?

THX

Ghofrane

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.

Do you mean the whole project or the .ioc file?
if you mean the ioc file, here is it attached.
If you mean the whole project, may you contact me in private or provide me your email as this project may contains sensitive informations

(Virus scan in progress ...)