Skip to main content
Visitor II
February 3, 2022
Question

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

  • February 3, 2022
  • 1 reply
  • 1379 views

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

    Technical Moderator
    March 16, 2022

    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