Skip to main content
Explorer
February 1, 2024
Solved

Compilation errors on Keil with OpenAmp project generated with CubeMX

  • February 1, 2024
  • 3 replies
  • 5052 views

Hi,

I am new about dual core mcu. I have stm32h745 mcu. 

I am working about inter core comminication, Firstly setting some setting on CubeMx.

When I create project codes, CubeMx creat 2 openamp library for each mcu(m4/m7).

After that I am trying build, and getting error like this.

 Error: L6200E: Symbol OPENAMP_init_ept multiply defined (by openamp_1.o and openamp.o). 

16 times geting similar error like this. 

Why CubeMx create wrong library. 

CubeIde working properly. (create only 1 library set)

    This topic has been closed for replies.
    Best answer by mƎALLEm

    Add-on:

    For IAR in the .icf files add:

     

    define symbol __OPENAMP_region_start__ = 0x38000400;
    define symbol __OPENAMP_region_size__ = 0xB000;
    export symbol __OPENAMP_region_start__;
    export symbol __OPENAMP_region_size__; 

     

    PS: 0x38000400 and 0xB000 are only examples. You can change them if you want. Just be sure they are not interleaving with other used memory regions.

    3 replies

    Technical Moderator
    February 1, 2024

    Hello,

    I tried to start a project with OpenAmp on stm32h745  and didn't face any issue.

    Which IDE are you using?

    I attached a project created with STM32CubeIDE.

    PS: you can inspire from the examples provided in STM32CubeH7 from this link: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/STM32H747I-EVAL/Applications/OpenAMP

    hllelek33Author
    Explorer
    February 2, 2024

    Thanks for replys.

    My IDE Keil uVision V5.26.2.0

     

    Technical Moderator
    February 2, 2024

    Hello,

    Thank you for the feedback. Is that possible to generate the project with CubeIDE and tell what it happens?

    PS: I have errors with KEIL (but are not the same as yours) and IAR  .. (already reported the issue internally on ticket 172397.

    What is the CubeMx version you're using?

     

    hllelek33Author
    Explorer
    February 5, 2024

    Hi, 

    Thank you. I am waiting for solution. Is there an any notification about solution for me?

    Technical Moderator
    February 5, 2024

    Don't worry, if there will be any news I will let you know ;)

    mƎALLEmAnswer
    Technical Moderator
    February 7, 2024

    Add-on:

    For IAR in the .icf files add:

     

    define symbol __OPENAMP_region_start__ = 0x38000400;
    define symbol __OPENAMP_region_size__ = 0xB000;
    export symbol __OPENAMP_region_start__;
    export symbol __OPENAMP_region_size__; 

     

    PS: 0x38000400 and 0xB000 are only examples. You can change them if you want. Just be sure they are not interleaving with other used memory regions.

    hllelek33Author
    Explorer
    February 8, 2024

    Thank you. 

    It is worked.