cancel
Showing results for 
Search instead for 
Did you mean: 

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

msche.1
Associate III

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.

1 REPLY 1
Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
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.