Skip to main content
WHUAN.1
Associate
September 22, 2022
Solved

Problems with building relocatable binary model using stm32ai CLI.

  • September 22, 2022
  • 2 replies
  • 1310 views

As shown in the picture, when I send the generate command, a compilation error occurs. The problem appears to be that std=c99 needs to be adjusted.

Does anyone know how to fix this please?

Thanks in advance.

0693W00000Svye2QAB.png

    This topic has been closed for replies.
    Best answer by Romain LE DONGE

    Hello,

    What version of the arm-none-eabi-gcc are you using ? (arm-none-eabi-gcc --version should do the trick)

    Also what is the location of the arm compiler you are using ? Is it the one provided with STM32CubeIDE ?

    To help debugging you can try to execute the arm compiler command manually with the -std=c99 option (the line after "executing the shell command (cwd=None env=None)"

    Regards,

    Romain

    2 replies

    Romain LE DONGE
    Romain LE DONGEBest answer
    Associate
    September 22, 2022

    Hello,

    What version of the arm-none-eabi-gcc are you using ? (arm-none-eabi-gcc --version should do the trick)

    Also what is the location of the arm compiler you are using ? Is it the one provided with STM32CubeIDE ?

    To help debugging you can try to execute the arm compiler command manually with the -std=c99 option (the line after "executing the shell command (cwd=None env=None)"

    Regards,

    Romain

    WHUAN.1
    WHUAN.1Author
    Associate
    September 23, 2022

    Thank you for your reply, I found out that the old version of arm-none-eabi-gcc in the environment variable is used.

    Now the relocatable binary model has been built successfully.

    In addition, I would like to ask if there is a related example code that explains how to use this file for model-OTA?

    Thank you very much.

    Regards,

    Alan