This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

stm32 cubemx generated code fail to build in Keil

I am using the tool STM32cubemx to generate the code for STM32F769 based evaluation board.
The cubemx creates a Keil-MDX project for the code. When the code is built in Keil,
it throws many instances of linker error as below:

L6654E: Rejected Local symbol .text11 referred to from non group member Container.o(.iar.stackusage)

What does the error mean? How this could be fixed?

The Keil version is V5.24.2.0 and arm compiler version 5.

The cubemx is v 5.0.0

Parents
  • Cube is an ST product - ST are responsible for the code it generates, so you should probably raise this with ST.

    L6654E: Rejected Local symbol .text11 referred to from non group member Container.o(.iar.stackusage)
    


    "What does the error mean?"

    Have you looked for information in the documentaion ?

    infocenter.arm.com/.../index.jsp

    Simply putting the message into your favourite internet search engine is a good start; eg,

    github.com/.../317

    As the error message menions IAR, are you sure you have you correctly configured your Cube project to use Keil - not IAR?

    Have you previously been using IAR on this project?

Reply
  • Cube is an ST product - ST are responsible for the code it generates, so you should probably raise this with ST.

    L6654E: Rejected Local symbol .text11 referred to from non group member Container.o(.iar.stackusage)
    


    "What does the error mean?"

    Have you looked for information in the documentaion ?

    infocenter.arm.com/.../index.jsp

    Simply putting the message into your favourite internet search engine is a good start; eg,

    github.com/.../317

    As the error message menions IAR, are you sure you have you correctly configured your Cube project to use Keil - not IAR?

    Have you previously been using IAR on this project?

Children

  • "What does the error mean?"
    Have you looked for information in the documentaion ?
    infocenter.arm.com/.../index.jsp

    I have looked at the documentation and this is I what I find for the L6554E error code:


    L6654E
    Rejected Local symbol <symname> is referred to from a non group section <nongrpname> in object <objname>
    If either L6651E, L6652E, or L6654E are reported, this might indicate a compiler fault. Contact your supplier.

    So documentation just says, the error is due to a compiler fault! And not much further details are given to get a direction for further debugging on the issue.

    And regarding the IAR possibility, I am not using IAR workbench.

    And for generating the code, I have set the tool chain as MDK-ARM V5 in ST CubeMX.

  • Well, it doesn't just say that - it also tells you what to do about it:

    "Contact your supplier"

    Note that the forum is not the place to contact Keil support: http://www.keil.com/forum