cancel
Showing results for 
Search instead for 
Did you mean: 

OPENAMP stm32h7 Errors after generation on a newer ioc version

Jakicaa
Associate II

STMCubeMX version: 6.14.0

Mcu Reference: STM32H757XIHx

Firmware package name and version: STM32Cube FW_H7 V1.12.1

Openamp version: v2018.10

We had an old project where openamp worked perfectly with the same version (of openamp), what was diffrent was the custom configuration for a specific display(from TGFX 4.25.0) and the version of the ioc file. The actual user configuration in the ioc is the same as is the code.

 

Now we have to make a new project based on touchgfx Custom board configuration 70STM32H7 v4.1.0. The old one was based on 70STM32H7 v3.2.0 (STMCubeMX version: v6.10.0 and FW_H7 V1.11.1) and worked fine without such errors. Openamp versions match on both IOCs. 

I checked the errno.h file for the definitions.

I am currently working on the M4 core. I setup openamp in the ioc then converted main.c to main.cpp. When I try building I get the following errors:

C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/system/generic/condition.h: In function 'metal_condition_signal': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/system/generic/condition.h:56:25: error: 'EINVAL' undeclared (first use in this function) 56 | return -EINVAL; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/system/generic/condition.h:56:25: note: each undeclared identifier is reported only once for each function it appears in C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/system/generic/condition.c: In function 'metal_condition_wait': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/system/generic/condition.c:26:25: error: 'EINVAL' undeclared (first use in this function) 26 | return -EINVAL; | ^~~~~~ make: *** [Middlewares/OpenAMP/subdir.mk:67: Middlewares/OpenAMP/condition.o] Error 1 make: *** Waiting for unfinished jobs.... C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c: In function 'metal_bus_register': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:21:25: error: 'EINVAL' undeclared (first use in this function) 21 | return -EINVAL; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:21:25: note: each undeclared identifier is reported only once for each function it appears in C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:23:25: error: 'EEXIST' undeclared (first use in this function) 23 | return -EEXIST; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c: In function 'metal_bus_find': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:52:17: error: 'ENOENT' undeclared (first use in this function) 52 | return -ENOENT; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c: In function 'metal_device_open': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:64:25: error: 'EINVAL' undeclared (first use in this function) 64 | return -EINVAL; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:71:25: error: 'ENODEV' undeclared (first use in this function) 71 | return -ENODEV; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c: In function 'metal_register_generic_device': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:91:25: error: 'EINVAL' undeclared (first use in this function) 91 | return -EINVAL; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c: In function 'metal_generic_dev_open': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:112:24: warning: implicit declaration of function 'metal_generic_dev_sys_open'; did you mean 'metal_generic_dev_open'? [-Wimplicit-function-declaration] 112 | return metal_generic_dev_sys_open(dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | metal_generic_dev_open C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:115:17: error: 'ENODEV' undeclared (first use in this function) 115 | return -ENODEV; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c: In function 'metal_bus_find': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:53:1: warning: control reaches end of non-void function [-Wreturn-type] 53 | } | ^ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c: In function 'metal_generic_dev_open': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/device.c:116:1: warning: control reaches end of non-void function [-Wreturn-type] 116 | } | ^ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c: In function 'metal_io_init': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c:30:9: warning: implicit declaration of function 'metal_sys_io_mem_map' [-Wimplicit-function-declaration] 30 | metal_sys_io_mem_map(io); | ^~~~~~~~~~~~~~~~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c: In function 'metal_io_block_read': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c:41:25: error: 'ERANGE' undeclared (first use in this function) 41 | return -ERANGE; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c:41:25: note: each undeclared identifier is reported only once for each function it appears in C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c: In function 'metal_io_block_write': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c:78:25: error: 'ERANGE' undeclared (first use in this function) 78 | return -ERANGE; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c: In function 'metal_io_block_set': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/io.c:114:25: error: 'ERANGE' undeclared (first use in this function) 114 | return -ERANGE; | ^~~~~~ make: *** [Middlewares/OpenAMP/subdir.mk:69: Middlewares/OpenAMP/device.o] Error 1 make: *** [Middlewares/OpenAMP/subdir.mk:81: Middlewares/OpenAMP/io.o] Error 1 C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/open-amp/lib/remoteproc/remoteproc_virtio.c: In function 'rproc_virtio_notified': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/open-amp/lib/remoteproc/remoteproc_virtio.c:297:25: error: 'EINVAL' undeclared (first use in this function) 297 | return -EINVAL; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/open-amp/lib/remoteproc/remoteproc_virtio.c:297:25: note: each undeclared identifier is reported only once for each function it appears in In file included from C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/assert.h:15, from C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/shmem.c:13: C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/io.h: In function 'metal_io_read': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/system/generic/assert.h:25:32: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration] 25 | #define metal_sys_assert(cond) assert(cond) | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/assert.h:21:28: note: in expansion of macro 'metal_sys_assert' 21 | #define metal_assert(cond) metal_sys_assert(cond) | ^~~~~~~~~~~~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/io.h:240:9: note: in expansion of macro 'metal_assert' 240 | metal_assert(0); | ^~~~~~~~~~~~ In file included from C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/shmem.h:15, from C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/shmem.c:14: C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/io.h:24:1: note: 'assert' is defined in header '<assert.h>'; did you forget to '#include <assert.h>'? 23 | #include <metal/cpu.h> +++ |+#include <assert.h> 24 | C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/shmem.c: In function 'metal_shmem_open_generic': C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/shmem.c:47:17: error: 'ENOENT' undeclared (first use in this function) 47 | return -ENOENT; | ^~~~~~ C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/shmem.c:47:17: note: each undeclared identifier is reported only once for each function it appears in C:/Users/Uporabnik/Documents/Riverdi7NewConfig/Middlewares/Third_Party/OpenAMP/libmetal/lib/shmem.c:48:1: warning: control reaches end of non-void function [-Wreturn-type] 48 | } | ^ make: *** [Middlewares/OpenAMP/subdir.mk:85: Middlewares/OpenAMP/remoteproc_virtio.o] Error 1 make: *** [Middlewares/OpenAMP/subdir.mk:91: Middlewares/OpenAMP/shmem.o] Error 1
View more

I would appreciate any help. I could not find any solutions online.

1 ACCEPTED SOLUTION

Accepted Solutions
Jakicaa
Associate II

The newer IOC version had the wrong symbol in preprocessor, the solution is to change the STM32H747xx to STM32H757xx in Project properties -> C/C++ Build -> Settings -> Tool Settings -> MCU GCC Compiler -> Preprocessor -> Double click on STM32H747xx and change it to STM32H757xx.

 

changeSymbol.png

 

I think this issue is only related to creating a project for the riverdi 7 from touchgfx inch display using the riverdi custom configuration 70STM32H7 v4.1 and probably all versions above v3.0. Riverdi knows of this.

View solution in original post

2 REPLIES 2
Jakicaa
Associate II

It seems there is an underlying problem. After creating a new project and not touching the ioc just trying to build the M4 core I get this error:

make -j8 all arm-none-eabi-gcc "V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -c -I../../../CM4/Core/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.o" arm-none-eabi-gcc "V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -c -I../../../CM4/Core/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.o" arm-none-eabi-gcc "V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -c -I../../../CM4/Core/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_dma.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_dma.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_dma.o" arm-none-eabi-gcc "V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -c -I../../../CM4/Core/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_dma_ex.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_dma_ex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_dma_ex.o" arm-none-eabi-gcc "V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -c -I../../../CM4/Core/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_exti.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_exti.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_exti.o" arm-none-eabi-gcc "V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -c -I../../../CM4/Core/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_flash.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_flash.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_flash.o" arm-none-eabi-gcc "V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -c -I../../../CM4/Core/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_flash_ex.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_flash_ex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_flash_ex.o" arm-none-eabi-gcc "V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -c -I../../../CM4/Core/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_gpio.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_gpio.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_gpio.o" In file included from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27, from ../../../CM4/Core/Inc/stm32h7xx_hal_conf.h:246, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29, from V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c:120: ../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:140:12: fatal error: stm32h747xx.h: No such file or directory 140 | #include "stm32h747xx.h" | ^~~~~~~~~~~~~~~ In file included from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27, from ../../../CM4/Core/Inc/stm32h7xx_hal_conf.h:246, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29, from V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c:36: ../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:140:12: fatal error: stm32h747xx.h: No such file or directory 140 | #include "stm32h747xx.h" | ^~~~~~~~~~~~~~~ In file included from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27, from ../../../CM4/Core/Inc/stm32h7xx_hal_conf.h:246, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29, from V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c:82: ../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:140:12: fatal error: stm32h747xx.h: No such file or directory 140 | #include "stm32h747xx.h" | ^~~~~~~~~~~~~~~ In file included from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27, from ../../../CM4/Core/Inc/stm32h7xx_hal_conf.h:246, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29, from V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c:85: ../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:140:12: fatal error: stm32h747xx.h: No such file or directory 140 | #include "stm32h747xx.h" | ^~~~~~~~~~~~~~~ In file included from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27, from ../../../CM4/Core/Inc/stm32h7xx_hal_conf.h:246, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29, from V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c:95: ../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:140:12: fatal error: stm32h747xx.h: No such file or directory 140 | #include "stm32h747xx.h" | ^~~~~~~~~~~~~~~ In file included from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27, from ../../../CM4/Core/Inc/stm32h7xx_hal_conf.h:246, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29, from V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c:107: ../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:140:12: fatal error: stm32h747xx.h: No such file or directory 140 | #include "stm32h747xx.h" | ^~~~~~~~~~~~~~~ compilation terminated. In file included from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27, from ../../../CM4/Core/Inc/stm32h7xx_hal_conf.h:246, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29, from V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c:87: ../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:140:12: fatal error: stm32h747xx.h: No such file or directory 140 | #include "stm32h747xx.h" | ^~~~~~~~~~~~~~~ In file included from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:29, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_rcc.h:27, from ../../../CM4/Core/Inc/stm32h7xx_hal_conf.h:246, from ../../../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h:29, from V:/inženiring/Koda/Jakob_ExtraFolder/MyApplication/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c:51: ../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h7xx.h:140:12: fatal error: stm32h747xx.h: No such file or directory 140 | #include "stm32h747xx.h" | ^~~~~~~~~~~~~~~ compilation terminated. compilation terminated. compilation terminated. compilation terminated. compilation terminated. compilation terminated. compilation terminated. make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:74: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_flash.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:66: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.o] Error 1 make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:70: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_dma_ex.o] Error 1 make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:78: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_gpio.o] Error 1 make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:64: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal.o] Error 1 make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:72: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_exti.o] Error 1 make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:76: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_flash_ex.o] Error 1 make: *** [Drivers/STM32H7xx_HAL_Driver/subdir.mk:68: Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_dma.o] Error 1
View more

 Probably have to sort this out first.

Jakicaa
Associate II

The newer IOC version had the wrong symbol in preprocessor, the solution is to change the STM32H747xx to STM32H757xx in Project properties -> C/C++ Build -> Settings -> Tool Settings -> MCU GCC Compiler -> Preprocessor -> Double click on STM32H747xx and change it to STM32H757xx.

 

changeSymbol.png

 

I think this issue is only related to creating a project for the riverdi 7 from touchgfx inch display using the riverdi custom configuration 70STM32H7 v4.1 and probably all versions above v3.0. Riverdi knows of this.