Skip to main content
msche.1
Associate III
Feb 3, 2022 03:21 UTC
Question

How do I fix "undefined reference to `OPENAMP_create_endpoint'" within the OpenAmp source.

I've added OPENAMP through the middleware after enableing the IPCC interrupts, but now I'm getting the following error and an error in the actual OPENAMP source that's included!

/opt/st/stm32cubeide_1.8.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.linux64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: ./Core/Src/main.o: in function `main':

/home/mschem/Gown-Sealer/STM32/sealer/CM4/Debug/../Core/Src/main.c:127: undefined reference to `MX_OPENAMP_Init'

/opt/st/stm32cubeide_1.8.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.linux64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /home/mschem/Gown-Sealer/STM32/sealer/CM4/Debug/../Core/Src/main.c:172: undefined reference to `OPENAMP_check_for_message'

/opt/st/stm32cubeide_1.8.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.linux64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: ./Middlewares/Third_Party/OpenAMP/virt_uart.o: in function `VIRT_UART_Init':

/home/mschem/Gown-Sealer/STM32/sealer/Middlewares/Third_Party/OpenAMP/virtual_driver/virt_uart.c:76: undefined reference to `OPENAMP_create_endpoint'

collect2: error: ld returned 1 exit status

make: *** [makefile:66: test_CM4.elf] Error 1

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

This topic has been closed for replies.

1 reply

Olivier GALLIEN
ST Technical Moderator
Mar 16, 2022 11:06 UTC

Hi @msche.1​ ,

Sorry to come late on this post.

I guess you find solution by yourself ?

Function OPENAMP_create_endpoint is declared in openamp.c/openamp.h

Olivier

In order 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.