Skip to main content
PDres.1
Visitor II
March 3, 2021
Solved

The update to CubeIDE 1.6.0 cause a linker error compiling the UserApp.

  • March 3, 2021
  • 5 replies
  • 2667 views

(.SE_IF_Code+0x0): multiple definition of `SE_APP_GetActiveFwInfo'

STM32L476 Demo

This topic has been closed for replies.
Best answer by Jocelyn RICARD

Hello,

I confirm the issue. And looking into the command line, the -l:se_interface_app.o is added twice.

I could make the compilation work by

1) Removing the -l:se_interface_app.o from Tools Settings/Libraries/Libraries

2) Adding the same -l:se_interface_app.o in Tool Settings/Miscellaneous/Other flags

Best regards

Jocelyn

5 replies

Technical Moderator
March 4, 2021

Hello @Community member​ and welcome to the STM32 Community :smiling_face_with_smiling_eyes:

I added the topic "STM32CubeIDE" to your question to be reviewed by our CubeIDE experts.

Hi @Markus GIRDLAND​ ,

Can you please help @Community member​ on this issue?

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Fred
ST Employee
March 4, 2021

As a workaround, you should be able to compile properly by placing the se_interface_app.o object file in the "Linker => Miscellaneous => Additional object flags" instead if the "Linker => Libraries => Libraries" (in the UserApp project).

Jocelyn RICARD
Jocelyn RICARDBest answer
ST Employee
March 5, 2021

Hello,

I confirm the issue. And looking into the command line, the -l:se_interface_app.o is added twice.

I could make the compilation work by

1) Removing the -l:se_interface_app.o from Tools Settings/Libraries/Libraries

2) Adding the same -l:se_interface_app.o in Tool Settings/Miscellaneous/Other flags

Best regards

Jocelyn

GMate.11
Associate
April 21, 2021

Hi Jocelyn,

i habe in deep the same problem

c:\st\stm32cubeide_1.2.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: ../Core/Inc/new_main.h:16: multiple definition of `huart_MHZ19C'; ../Core/Inc/new_main.h:16: first defined here...

But in my case, there is nothing to delete on Libraries

0693W00000AM3UhQAL.pngI added the object on the micellaneous and compile agin

0693W00000AM3VLQA1.pngEventhough the changes. i get the same error

I appreciate your comments

STM32Fan1
Visitor II
March 25, 2021

Hi,

it works thanks Jocelyn

Just adding some infos where I found these options

click right when selecting the project which fail linking

Then properties

Got to C/C++ build setting

MCU GCC linker in Librairies you have entry :se_interface_app.o

remove it but select & clicking on the red cross icon

then select MCU GCC Linker/Miscellaneous

add -l:se_interface_app.o (please note the -l before)

Wait a bit for build and enjoy

Problem is solved

Vincent

Amin.TAYEBI
Associate II
July 7, 2021

Hi

I solved the problem by disconnecting and connecting the stm32-wl55c1 from my PC while pressing Debug botton in Cube-IDE.

Amin TAYEBI