2025-04-04 12:13 AM
Hi all,
I am using CubeMX 6.14 to generate an OpenAMP project for the STM32H747I-DISCO board. When I build the project, I receive the following warnings, and it results in an 'OpenAMP create endpoint' error at runtime. I used the same code and project created with CubeMX 6.12, and it works fine. Therefore, I suspect there might be an issue with CubeMX 6.14. Could someone please advise me on how to generate a working OpenAMP project using CubeMX?
arm-none-eabi-gcc "D:/TouchGFXProjects/STM32H7_TUT/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -DUSE_PWR_DIRECT_SMPS_SUPPLY -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DRPMSG_BUFFER_SIZE=512 -DVIRTIO_SLAVE_ONLY -DRPMSG_BUFFER_SIZE -DNO_ATOMIC_64_SUPPORT -c -I../../../CM4/Core/Inc -I../../../Drivers/BSP/Components -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM4/OPENAMP -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/compiler/gcc -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/rpmsg -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 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.o"
<command-line>: warning: "RPMSG_BUFFER_SIZE" redefined
<command-line>: note: this is the location of the previous definition
arm-none-eabi-gcc "D:/TouchGFXProjects/STM32H7_TUT/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -DUSE_PWR_DIRECT_SMPS_SUPPLY -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DRPMSG_BUFFER_SIZE=512 -DVIRTIO_SLAVE_ONLY -DRPMSG_BUFFER_SIZE -DNO_ATOMIC_64_SUPPORT -c -I../../../CM4/Core/Inc -I../../../Drivers/BSP/Components -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM4/OPENAMP -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/compiler/gcc -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/rpmsg -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 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc_ex.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc_ex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc_ex.o"
<command-line>: warning: "RPMSG_BUFFER_SIZE" redefined
<command-line>: note: this is the location of the previous definition
arm-none-eabi-gcc "D:/TouchGFXProjects/STM32H7_TUT/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rtc.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -DUSE_PWR_DIRECT_SMPS_SUPPLY -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DRPMSG_BUFFER_SIZE=512 -DVIRTIO_SLAVE_ONLY -DRPMSG_BUFFER_SIZE -DNO_ATOMIC_64_SUPPORT -c -I../../../CM4/Core/Inc -I../../../Drivers/BSP/Components -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM4/OPENAMP -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/compiler/gcc -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/rpmsg -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 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rtc.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rtc.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rtc.o"
<command-line>: warning: "RPMSG_BUFFER_SIZE" redefined
<command-line>: note: this is the location of the previous definition
arm-none-eabi-gcc "D:/TouchGFXProjects/STM32H7_TUT/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rtc_ex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -DUSE_PWR_DIRECT_SMPS_SUPPLY -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DRPMSG_BUFFER_SIZE=512 -DVIRTIO_SLAVE_ONLY -DRPMSG_BUFFER_SIZE -DNO_ATOMIC_64_SUPPORT -c -I../../../CM4/Core/Inc -I../../../Drivers/BSP/Components -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM4/OPENAMP -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/compiler/gcc -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/rpmsg -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 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rtc_ex.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rtc_ex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_rtc_ex.o"
<command-line>: warning: "RPMSG_BUFFER_SIZE" redefined
<command-line>: note: this is the location of the previous definition
arm-none-eabi-gcc "D:/TouchGFXProjects/STM32H7_TUT/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -DUSE_PWR_DIRECT_SMPS_SUPPLY -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DRPMSG_BUFFER_SIZE=512 -DVIRTIO_SLAVE_ONLY -DRPMSG_BUFFER_SIZE -DNO_ATOMIC_64_SUPPORT -c -I../../../CM4/Core/Inc -I../../../Drivers/BSP/Components -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM4/OPENAMP -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/compiler/gcc -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/rpmsg -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 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_tim.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_tim.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_tim.o"
<command-line>: warning: "RPMSG_BUFFER_SIZE" redefined
<command-line>: note: this is the location of the previous definition
arm-none-eabi-gcc "D:/TouchGFXProjects/STM32H7_TUT/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DCORE_CM4 -DUSE_HAL_DRIVER -DSTM32H747xx -DUSE_PWR_DIRECT_SMPS_SUPPLY -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DRPMSG_BUFFER_SIZE=512 -DVIRTIO_SLAVE_ONLY -DRPMSG_BUFFER_SIZE -DNO_ATOMIC_64_SUPPORT -c -I../../../CM4/Core/Inc -I../../../Drivers/BSP/Components -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I../../../Drivers/STM32H7xx_HAL_Driver/Inc/Legacy -I../../../Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../../Drivers/CMSIS/Include -I../../../CM4/OPENAMP -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include -I../../../Middlewares/Third_Party/OpenAMP/libmetal/lib/include/metal/compiler/gcc -I../../../Middlewares/Third_Party/OpenAMP/open-amp/lib/rpmsg -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 -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_tim_ex.d" -MT"Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_tim_ex.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Drivers/STM32H7xx_HAL_Driver/stm32h7xx_hal_tim_ex.o"
<command-line>: warning: "RPMSG_BUFFER_SIZE" redefined
Solved! Go to Solution.
2025-04-21 3:12 AM - edited 2025-04-21 6:12 AM
So there is a wrong (re)definition of RPMSG_BUFFER_SIZE in the project settings. A temporary solution is to remove it from the project settings for both cores and recompile.
Regards,
Chris
2025-04-04 1:53 AM - edited 2025-04-04 1:55 AM
Hello @Tom17
First let me thank you for posting.
I'm currently checking this issue internally, I will get back to you asap.
THX
Ghofrane
2025-04-07 6:13 PM
Hi Ghofrane,
I also encountered the same problem, is there a solution to this problem?
2025-04-09 5:57 AM
Hello @Tom17
Issue has been raised to dev team .
Internal ticket number : 207197
I will keep you posted with updates.
THX
Ghofrane
2025-04-09 7:44 AM
Same for Cube IDE v1.18
2025-04-09 9:56 AM
Hi @Ghofrane GSOURI ,
Since my project is quite urgent, I was wondering if you could provide a workaround or a method for manual modification?
2025-04-15 3:44 AM
This bug is still present in version 6.14.1 and hasn't been resolved. Is there a plan to fix it?
2025-04-21 3:12 AM - edited 2025-04-21 6:12 AM
So there is a wrong (re)definition of RPMSG_BUFFER_SIZE in the project settings. A temporary solution is to remove it from the project settings for both cores and recompile.
Regards,
Chris
2025-04-21 5:31 AM - edited 2025-04-21 5:31 AM
Hi Chris,
Thank you for your explanation. The issue has been resolved.